Work only with visible items.
--HG-- branch : develop
This commit is contained in:
parent
8745a78c67
commit
40b4779a04
|
@ -269,7 +269,7 @@ QPointF MainWindow::StartPositionNewPP() const
|
|||
const qreal margin = 40.0;
|
||||
if (comboBoxDraws->count() > 1)
|
||||
{
|
||||
const QRectF rect = sceneDraw->itemsBoundingRect();
|
||||
const QRectF rect = sceneDraw->VisibleItemsBoundingRect();
|
||||
if (rect.width() <= rect.height())
|
||||
{
|
||||
return QPointF(rect.width()+margin, originY);
|
||||
|
|
Loading…
Reference in New Issue
Block a user