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

Caolán McNamara caolanm at redhat.com
Thu Jun 15 12:00:27 UTC 2017


 filter/source/graphicfilter/ieps/ieps.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit dfb0ec6c029e377aa586fdf1fa6c58a58d1b1e64
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Jun 15 12:55:40 2017 +0100

    ofz: eps timeouts
    
    Change-Id: Iadc3e2a6f2cf5bea1351c818d5e4da7d5f94c1df

diff --git a/filter/source/graphicfilter/ieps/ieps.cxx b/filter/source/graphicfilter/ieps/ieps.cxx
index 133b0e666411..34e68abfc0d8 100644
--- a/filter/source/graphicfilter/ieps/ieps.cxx
+++ b/filter/source/graphicfilter/ieps/ieps.cxx
@@ -666,10 +666,10 @@ ipsGraphicImport( SvStream & rStream, Graphic & rGraphic, FilterConfigItem* )
                             bool bIsValid = true;
                             sal_uInt8 nDat = 0;
                             char nByte;
-                            for ( long y = 0; bIsValid && ( y < nHeight ); y++ )
+                            for (long y = 0; bIsValid && y < nHeight; ++y)
                             {
                                 int nBitsLeft = 0;
-                                for ( long x = 0; x < nWidth; x++ )
+                                for (long x = 0; bIsValid && x < nWidth; ++x)
                                 {
                                     if ( --nBitsLeft < 0 )
                                     {
@@ -720,7 +720,7 @@ ipsGraphicImport( SvStream & rStream, Graphic & rGraphic, FilterConfigItem* )
                                     }
                                 }
                             }
-                            if ( bIsValid )
+                            if (bIsValid)
                             {
                                 ScopedVclPtrInstance<VirtualDevice> pVDev;
                                 GDIMetaFile     aMtf;


More information about the Libreoffice-commits mailing list