From 9e3782ef1d94f69c754b60f2f530502d1878ce11 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Thu, 6 Sep 2012 01:10:57 +0100 Subject: [PATCH] Fix Line/Rect drawing in zoom window --- src/game/GameView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp index a05e7ef2a..029c27f60 100644 --- a/src/game/GameView.cpp +++ b/src/game/GameView.cpp @@ -1082,12 +1082,12 @@ void GameView::OnMouseUp(int x, int y, unsigned button) if(drawSnap && drawMode == DrawLine) { - finalDrawPoint2 = c->PointTranslate(lineSnapCoords(c->PointTranslate(drawPoint1), drawPoint2)); + finalDrawPoint2 = lineSnapCoords(c->PointTranslate(drawPoint1), c->PointTranslate(drawPoint2)); } if(drawSnap && drawMode == DrawRect) { - finalDrawPoint2 = c->PointTranslate(rectSnapCoords(c->PointTranslate(drawPoint1), drawPoint2)); + finalDrawPoint2 = rectSnapCoords(c->PointTranslate(drawPoint1), c->PointTranslate(drawPoint2)); } if(drawMode == DrawRect)