summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2010-12-15 14:00:14 -0500
committerKohei Yoshida <kyoshida@novell.com>2010-12-15 14:00:14 -0500
commit51898856edb711fe6a5f8f9c470953c25f4034a5 (patch)
tree3752a1f4a09eb43f0665fc0403f08a69eb762ff0
parent9753be5190173021d8a74d8afb0e3ba615198e70 (diff)
Simpler logic for selecting next field button.
-rw-r--r--sc/source/ui/dbgui/fieldwnd.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/dbgui/fieldwnd.cxx b/sc/source/ui/dbgui/fieldwnd.cxx
index 84d99e2b8f66..c4f3210685fa 100644
--- a/sc/source/ui/dbgui/fieldwnd.cxx
+++ b/sc/source/ui/dbgui/fieldwnd.cxx
@@ -690,8 +690,7 @@ void ScDPFieldControlBase::ModifySelectionOffset( long nOffsetDiff )
void ScDPFieldControlBase::SelectNext()
{
- if( GetFieldType() == TYPE_SELECT )
- MoveSelection( KEY_DOWN, 0, 1 );
+ SetSelection(mnFieldSelected + 1);
}
void ScDPFieldControlBase::GrabFocusWithSel( size_t nIndex )