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

New commits:
commit 91cc48f3d4b8e11f44a366e395b010203ff9c5bc
Author: Norbert Thiebaud <norb...@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 <nthieb...@gmail.com>
    Tested-by: Norbert Thiebaud <nthieb...@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
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to