Work only with visible items.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2016-01-13 17:15:53 +02:00
parent ee8378f9e8
commit 908dc5b975

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);