Work only with visible items.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-01-13 17:15:53 +02:00
parent 8745a78c67
commit 40b4779a04

View File

@ -269,7 +269,7 @@ QPointF MainWindow::StartPositionNewPP() const
const qreal margin = 40.0; const qreal margin = 40.0;
if (comboBoxDraws->count() > 1) if (comboBoxDraws->count() > 1)
{ {
const QRectF rect = sceneDraw->itemsBoundingRect(); const QRectF rect = sceneDraw->VisibleItemsBoundingRect();
if (rect.width() <= rect.height()) if (rect.width() <= rect.height())
{ {
return QPointF(rect.width()+margin, originY); return QPointF(rect.width()+margin, originY);