From 8ab89a114531cbf94df6d01b3e866afd14183654 Mon Sep 17 00:00:00 2001 From: twanvl Date: Sun, 24 Dec 2006 13:53:07 +0000 Subject: [PATCH] fixed onHandle: now looks at all handles git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@164 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/gui/symbol/select_editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/symbol/select_editor.cpp b/src/gui/symbol/select_editor.cpp index 78d9de53..c69f5ffd 100644 --- a/src/gui/symbol/select_editor.cpp +++ b/src/gui/symbol/select_editor.cpp @@ -376,8 +376,8 @@ bool SymbolSelectEditor::onHandle(const Vector2D& mpos, int dx, int dy) { mp.y >= p.y - 4 && mp.y < p.y + 4; } bool SymbolSelectEditor::onAnyHandle(const Vector2D& mpos, int* dxOut, int* dyOut) { - for (int dx = -1 ; dx < 1 ; ++dx) { - for (int dy = -1 ; dy < 1 ; ++dy) { + for (int dx = -1 ; dx <= 1 ; ++dx) { + for (int dy = -1 ; dy <= 1 ; ++dy) { if ((dx != 0 || dy != 0) && onHandle(mpos, dx, dy)) { // (0,0) == center, not a handle *dxOut = dx; *dyOut = dy;