summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-02-09 15:43:41 +0100
committerMichael Stahl <mstahl@redhat.com>2015-02-09 15:53:57 +0100
commitda1c96d4cd98876cde8a0ab3ddf3d387646a0ba7 (patch)
tree0cd269856bb0d70495be70c7db2c3d0a559aef20 /sw
parent53740bd71a0ae569da36b9293ef22842a0b53f1e (diff)
sw: another LONG_MAX fed into LogicToPixel
Can be reproduced by dragging the zoom slider. Change-Id: I4d32543370eccbda23d0a1ea449ee124148143d6
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/view/viewsh.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx
index a8934244a919..7739c9206e36 100644
--- a/sw/source/core/view/viewsh.cxx
+++ b/sw/source/core/view/viewsh.cxx
@@ -1055,7 +1055,7 @@ void SwViewShell::VisPortChgd( const SwRect &rRect)
SwRect aBoth( VisArea() );
aBoth.Union( aPrevArea );
const SwTwips nBottom = aBoth.Bottom();
- SwTwips nMinLeft = LONG_MAX;
+ SwTwips nMinLeft = SAL_MAX_INT32;
SwTwips nMaxRight= 0;
const bool bBookMode = GetViewOptions()->IsViewLayoutBookMode();