[Libreoffice-commits] core.git: svtools/source

Norbert Thiebaud norbert at sqdata.com
Wed Sep 14 21:52:09 UTC 2016


 svtools/source/graphic/grfmgr2.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 91cc48f3d4b8e11f44a366e395b010203ff9c5bc
Author: Norbert Thiebaud <norbert at sqdata.com>
Date:   Tue Sep 13 12:35:43 2016 +0200

    cid#1372878 modulo by zero
    
    Change-Id: I37ed251597f44d382fde96c39ff9d07e4d14c50a
    Reviewed-on: https://gerrit.libreoffice.org/28859
    Reviewed-by: Norbert Thiebaud <nthiebaud at gmail.com>
    Tested-by: Norbert Thiebaud <nthiebaud at gmail.com>

diff --git a/svtools/source/graphic/grfmgr2.cxx b/svtools/source/graphic/grfmgr2.cxx
index 67ead4c..408bee5 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


More information about the Libreoffice-commits mailing list