[Libreoffice-commits] .: Branch 'feature/calc-dp-unlimited-fields' - sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Wed Dec 15 11:00:34 PST 2010


 sc/source/ui/dbgui/fieldwnd.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit c4c6475f86b1dba9f8453431e4426ac83b8c6c40
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Wed Dec 15 14:00:14 2010 -0500

    Simpler logic for selecting next field button.

diff --git a/sc/source/ui/dbgui/fieldwnd.cxx b/sc/source/ui/dbgui/fieldwnd.cxx
index 288a136..76cc70c 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 )


More information about the Libreoffice-commits mailing list