[Libreoffice-commits] .: Branch 'libreoffice-4-0' - sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Jan 10 16:54:45 PST 2013


 sc/source/ui/dbgui/sortkeydlg.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 90fe1b210025c19e885b093bf2f556d5b62f9dd4
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Jan 10 13:49:20 2013 +0000

    Resolves: fdo#59112 re-scroll to current entry when dialog resized
    
    Change-Id: I96486f6edad11520bf9bb43b700b1716d9b2f170
    (cherry picked from commit 2c403c7f36561410418ebb9f86664e46a8c1c968)
    Reviewed-on: https://gerrit.libreoffice.org/1628
    Reviewed-by: Kohei Yoshida <kohei.yoshida at gmail.com>
    Tested-by: Kohei Yoshida <kohei.yoshida at gmail.com>

diff --git a/sc/source/ui/dbgui/sortkeydlg.cxx b/sc/source/ui/dbgui/sortkeydlg.cxx
index 45d65ca..e71a48f 100644
--- a/sc/source/ui/dbgui/sortkeydlg.cxx
+++ b/sc/source/ui/dbgui/sortkeydlg.cxx
@@ -127,6 +127,7 @@ void ScSortKeyCtrl::setScrollRange()
     sal_Int32 nVisibleItems = m_rScrolledWindow.getVisibleChildSize().Height() / nScrollOffset;
     m_rVertScroll.SetPageSize( nVisibleItems - 1 );
     m_rVertScroll.SetVisibleSize( nVisibleItems );
+    m_rVertScroll.Scroll();
 }
 
 // -----------------------------------------------------------------------


More information about the Libreoffice-commits mailing list