[Libreoffice-commits] core.git: sw/source
Caolán McNamara
caolanm at redhat.com
Fri Nov 14 09:01:01 PST 2014
sw/source/uibase/uiview/viewport.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit e170f0858721545d6b0e22d12cc1f5bbc6b2e57d
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Nov 14 16:59:35 2014 +0000
coverity#1242518 Arguments in wrong order
doesn't actually matter, they are either the same number or one is 0
in which case it doesn't matter which is zero either
Change-Id: If53d4287dfd57b4ce29e2f7251eb523694730e77
diff --git a/sw/source/uibase/uiview/viewport.cxx b/sw/source/uibase/uiview/viewport.cxx
index c7509b9..4280ad8 100644
--- a/sw/source/uibase/uiview/viewport.cxx
+++ b/sw/source/uibase/uiview/viewport.cxx
@@ -852,9 +852,9 @@ void ViewResizePixel( const vcl::Window &rRef,
const long nVLinSzWidth = bVRuler ?
pVRuler->GetSizePixel().Width() : 0;
- long nScrollBarSize = rRef.GetSettings().GetStyleSettings().GetScrollBarSize();
- long nHBSzHeight = rHScrollbar.IsVisible(true) ? nScrollBarSize : 0;
- long nVBSzWidth = rVScrollbar.IsVisible(true) ? nScrollBarSize : 0;
+ const long nScrollBarSize = rRef.GetSettings().GetStyleSettings().GetScrollBarSize();
+ const long nHBSzHeight = rHScrollbar.IsVisible(true) ? nScrollBarSize : 0;
+ const long nVBSzWidth = rVScrollbar.IsVisible(true) ? nScrollBarSize : 0;
if(pVRuler)
{
@@ -927,7 +927,7 @@ void ViewResizePixel( const vcl::Window &rRef,
aScrollFillPos.X() = aPos.X();
}
- rScrollBarBox.SetPosSizePixel( aScrollFillPos, Size( nHBSzHeight, nVBSzWidth) );
+ rScrollBarBox.SetPosSizePixel(aScrollFillPos, Size(nVBSzWidth, nHBSzHeight));
}
void SwView::ShowAtResize()
More information about the Libreoffice-commits
mailing list