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

Caolán McNamara caolanm at redhat.com
Sun Oct 29 21:05:30 UTC 2017


 filter/source/graphicfilter/icgm/cgm.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit bcad55fcc9557b34431df557afb827341f3db51e
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Oct 29 14:37:28 2017 +0000

    ofz: Divide-by-zero
    
    Change-Id: I1bf3e17950bda3386514dd5956b89df89565b780
    Reviewed-on: https://gerrit.libreoffice.org/44024
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/filter/source/graphicfilter/icgm/cgm.cxx b/filter/source/graphicfilter/icgm/cgm.cxx
index d535ff8878f4..e20d60d3bd69 100644
--- a/filter/source/graphicfilter/icgm/cgm.cxx
+++ b/filter/source/graphicfilter/icgm/cgm.cxx
@@ -404,7 +404,7 @@ void CGM::ImplSetMapMode()
     else
         mbAngReverse = false;
 
-    if (mnVDCdy == 0.0 || mnOutdy == 0.0)
+    if (mnVDCdy == 0.0 || mnVDCdx == 0.0 || mnOutdy == 0.0)
     {
         mbStatus = false;
         return;


More information about the Libreoffice-commits mailing list