allow removing zoom tool when shift drawing lines

This commit is contained in:
jacob1 2013-01-15 11:10:30 -05:00
parent a27d637ceb
commit 62195dc2a3

View File

@ -1018,7 +1018,7 @@ void GameView::OnMouseDown(int x, int y, unsigned button)
c->HistorySnapshot(); c->HistorySnapshot();
if(drawMode == DrawRect || drawMode == DrawLine) if(drawMode == DrawRect || drawMode == DrawLine)
{ {
drawPoint1 = ui::Point(x, y); drawPoint1 = c->PointTranslate(ui::Point(x, y));
} }
if(drawMode == DrawPoints) if(drawMode == DrawPoints)
{ {
@ -1288,7 +1288,8 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool
} }
else else
{ {
isMouseDown = false; if (drawMode != DrawLine)
isMouseDown = false;
zoomCursorFixed = false; zoomCursorFixed = false;
c->SetZoomEnabled(true); c->SetZoomEnabled(true);
} }