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

Kohei Yoshida kohei at kemper.freedesktop.org
Wed Dec 15 10:04:29 PST 2010


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

New commits:
commit 104f1f7f0185e986e789ecba3932ba27dd06e9e0
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Wed Dec 15 13:04:11 2010 -0500

    Set scroll bar line size to always 1.

diff --git a/sc/source/ui/dbgui/fieldwnd.cxx b/sc/source/ui/dbgui/fieldwnd.cxx
index 4ebc44a..288a136 100644
--- a/sc/source/ui/dbgui/fieldwnd.cxx
+++ b/sc/source/ui/dbgui/fieldwnd.cxx
@@ -834,7 +834,7 @@ void ScDPHorFieldControl::CalcSize()
     mnFieldBtnRowCount = nTotalH / (FIELD_BTN_HEIGHT + ROW_FIELD_BTN_GAP);
     mnFieldBtnColCount = (nTotalW + ROW_FIELD_BTN_GAP) / (FIELD_BTN_WIDTH + ROW_FIELD_BTN_GAP);
 
-    maScroll.SetLineSize(mnFieldBtnRowCount);
+    maScroll.SetLineSize(1);
     maScroll.SetVisibleSize(mnFieldBtnColCount);
     maScroll.SetPageSize(mnFieldBtnColCount);
     maScroll.SetRange(Range(0, mnFieldBtnColCount));


More information about the Libreoffice-commits mailing list