Review & fixing some small defects
[situare] / src / map / mapview.cpp
index 8df461c..952fb06 100644 (file)
@@ -87,9 +87,8 @@ void MapView::centerToSceneCoordinates(const SceneCoordinate &coordinate, bool i
     QPointF target = coordinate.toPointF();
     m_lastSetScenePosition = coordinate;
 
-    if (!isUserDragAction) {
+    if (!isUserDragAction)
         target += m_centerHorizontalShiftPoint;
-    }
 
     centerOn(target);
 }