summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Thiebaud <norbert@sqdata.com>2016-09-13 12:35:43 +0200
committerNorbert Thiebaud <nthiebaud@gmail.com>2016-09-14 21:51:16 +0000
commit91cc48f3d4b8e11f44a366e395b010203ff9c5bc (patch)
tree4ea8847bc6741324437bbbbf7683c927a1c077bd
parent0f33526ec27a3abcfa1ca9348a46238b1432e5e4 (diff)
cid#1372878 modulo by zero
Change-Id: I37ed251597f44d382fde96c39ff9d07e4d14c50a Reviewed-on: https://gerrit.libreoffice.org/28859 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
-rw-r--r--svtools/source/graphic/grfmgr2.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/svtools/source/graphic/grfmgr2.cxx b/svtools/source/graphic/grfmgr2.cxx
index 67ead4c755e4..408bee56e2a0 100644
--- a/svtools/source/graphic/grfmgr2.cxx
+++ b/svtools/source/graphic/grfmgr2.cxx
@@ -1675,8 +1675,10 @@ bool GraphicObject::ImplRenderTempTile( VirtualDevice& rVDev,
}
// one less
- nMSBFactor /= nExponent;
-
+ if(nMSBFactor > 1)
+ {
+ nMSBFactor /= nExponent;
+ }
ImplTileInfo aTileInfo;
// #105229# Switch off mapping (converting to logic and back to