summaryrefslogtreecommitdiff
path: root/svtools/source
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2011-03-10 15:47:35 +0100
committerRadek Doulik <rodo@novell.com>2011-03-10 15:48:49 +0100
commite2c95099c8946ab051de02c28d98d18b2c3037e7 (patch)
tree918f156a7a50b114a5b9c7435c1a1410e0440efe /svtools/source
parent4bfd1a2bcd89a946ee53b0eae6246375dead6e4f (diff)
fix for 3.3.2 blocker fdo#34718 - change the type of nDrawerHeight to long
- before it became big positive long in the called Point::Move function, moving the drawer under the visible area. so it was basically signed/unsigned problem in the layouter
Diffstat (limited to 'svtools/source')
-rw-r--r--svtools/source/toolpanel/drawerlayouter.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/toolpanel/drawerlayouter.cxx b/svtools/source/toolpanel/drawerlayouter.cxx
index 8d91e65d7bab..4a5ebfc95260 100644
--- a/svtools/source/toolpanel/drawerlayouter.cxx
+++ b/svtools/source/toolpanel/drawerlayouter.cxx
@@ -88,7 +88,7 @@ namespace svt
const size_t nUpperBound = !!aActivePanel ? *aActivePanel : nPanelCount - 1;
for ( size_t i=0; i<=nUpperBound; ++i )
{
- sal_uInt32 nDrawerHeight = m_aDrawers[i]->GetPreferredHeightPixel();
+ long nDrawerHeight = m_aDrawers[i]->GetPreferredHeightPixel();
m_aDrawers[i]->SetPosSizePixel(
aUpperDrawerPos, Size( nWidth, nDrawerHeight ) );
aUpperDrawerPos.Move( 0, nDrawerHeight );
@@ -98,7 +98,7 @@ namespace svt
Point aLowerDrawerPos( i_rDeckPlayground.BottomLeft() );
for ( size_t j = nPanelCount - 1; j > nUpperBound; --j )
{
- sal_uInt32 nDrawerHeight = m_aDrawers[j]->GetPreferredHeightPixel();
+ long nDrawerHeight = m_aDrawers[j]->GetPreferredHeightPixel();
m_aDrawers[j]->SetPosSizePixel(
Point( aLowerDrawerPos.X(), aLowerDrawerPos.Y() - nDrawerHeight + 1 ),
Size( nWidth, nDrawerHeight )