diff options
Diffstat (limited to 'qt-ui/globe.cpp')
-rw-r--r-- | qt-ui/globe.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp index 87dc4275b..abd3362cb 100644 --- a/qt-ui/globe.cpp +++ b/qt-ui/globe.cpp @@ -198,9 +198,8 @@ void GlobeGPS::changeDiveGeoPosition(qreal lon, qreal lat, GeoDataCoordinates::U lon = lon * 180 / M_PI; lat = lat * 180 / M_PI; } - if (!editingDiveCoords) { + if (!editingDiveCoords) return; - } editingDiveCoords->latitude.udeg = lrint(lat * 1000000.0); editingDiveCoords->longitude.udeg = lrint(lon * 1000000.0); @@ -222,13 +221,10 @@ void GlobeGPS::mousePressEvent(QMouseEvent* event) void GlobeGPS::resizeEvent(QResizeEvent* event) { int size = event->size().width(); - MarbleWidget::resizeEvent(event); - if (size > 600) messageWidget->setGeometry((size - 600) / 2, 5, 600, 0); else messageWidget->setGeometry(5, 5, size - 10, 0); - messageWidget->setMaximumHeight(500); } |