I messed up the patch from ticket #3971, because I thought I could simplify it.

Sorry about that! This is now like in the original patch and fixes the ticket
for real.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30926 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2009-05-30 17:04:44 +00:00
parent 5ab2eaabaa
commit bc72ab054b
+6 -4
View File
@@ -847,16 +847,18 @@ SudokuView::MouseMoved(BPoint where, uint32 transit,
}
uint32 x, y;
if (!_GetFieldFor(where, x, y)
bool isField = _GetFieldFor(where, x, y);
if (isField) {
fKeyboardX = x;
fKeyboardY = y;
}
if (!isField
|| (fField->FlagsAt(x, y) & kInitialValue) != 0
|| !fShowCursor && fField->ValueAt(x, y) != 0) {
_RemoveHint();
return;
}
fKeyboardX = x;
fKeyboardY = y;
if (fShowHintX == x && fShowHintY == y)
return;