Work only with visible items.
--HG-- branch : release
This commit is contained in:
parent
ee8378f9e8
commit
908dc5b975
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user