Skip to content

Commit b92d077

Browse files
committed
LP-573 Workaround for duplicate Home/Safearea display
1 parent f5d36cc commit b92d077

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

ground/gcs/src/libs/opmapcontrol/src/mapwidget/homeitem.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@ QRectF HomeItem::boundingRect() const
7373
if (pic.width() > localsafearea * 2 && !toggleRefresh) {
7474
return QRectF(-pic.width() / 2, -pic.height() / 2, pic.width(), pic.height());
7575
} else {
76-
return QRectF(-localsafearea, -localsafearea, localsafearea * 2, localsafearea * 2);
76+
// FIXME: LP-573 For some reason when boundingRect is defined normally,
77+
// return QRectF(-localsafearea, -localsafearea, localsafearea * 2, localsafearea * 2);
78+
// the previous safearea circle and Home (both at previous/smaller size) still drawed
79+
// into the corner of boudingRect area when zoom in.
80+
// Current workaround is done expanding x100 the boundingRect returned.
81+
return QRectF(-localsafearea * 100, -localsafearea * 100, localsafearea * 200, localsafearea * 200);
7782
}
7883
}
7984

0 commit comments

Comments
 (0)