From bc72ab054b4633a0cecc5f8474efa1e1a5ed89b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 30 May 2009 17:04:44 +0000 Subject: [PATCH] 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 --- src/apps/sudoku/SudokuView.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/apps/sudoku/SudokuView.cpp b/src/apps/sudoku/SudokuView.cpp index 43aacf4728..984cf084ae 100644 --- a/src/apps/sudoku/SudokuView.cpp +++ b/src/apps/sudoku/SudokuView.cpp @@ -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;