diff options
author | Norbert Thiebaud <norbert@sqdata.com> | 2016-09-13 12:35:43 +0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2016-09-14 21:51:16 +0000 |
commit | 91cc48f3d4b8e11f44a366e395b010203ff9c5bc (patch) | |
tree | 4ea8847bc6741324437bbbbf7683c927a1c077bd /svtools | |
parent | 0f33526ec27a3abcfa1ca9348a46238b1432e5e4 (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>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/graphic/grfmgr2.cxx | 6 |
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 |