]> www.fi.muni.cz Git - evince.git/commitdiff
Port fix for a crasher from kde bug
authorMarco Pesenti Gritti <marco@gnome.org>
Thu, 24 Feb 2005 17:40:47 +0000 (17:40 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Thu, 24 Feb 2005 17:40:47 +0000 (17:40 +0000)
2005-02-24  Marco Pesenti Gritti  <marco@gnome.org>

        * pdf/splash/Splash.cc:

        Port fix for a crasher from kde bug
        http://bugs.kde.org/show_bug.cgi?id=97131

ChangeLog
pdf/splash/Splash.cc

index 7f1f722030783a61eece400a41f1a457e988c16b..5952050328a715d3fdc91f4ac5e52e055cf8daab 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-02-24  Marco Pesenti Gritti  <marco@gnome.org>
+
+       * pdf/splash/Splash.cc:
+
+       Port fix for a crasher from kde bug
+       http://bugs.kde.org/show_bug.cgi?id=97131
+
 2005-02-24  Marco Pesenti Gritti  <marco@gnome.org>
 
        * pdf/xpdf/pdf-document.cc:
index 4094f4a70a10f95bd05ed8b95d3298d05ed73bae..6202dd18dc031433ba1dc32d752fab71c2df5cfa 100644 (file)
@@ -642,7 +642,7 @@ SplashError Splash::fillWithPattern(SplashPath *path, GBool eo,
   int xMinI, yMinI, xMaxI, yMaxI, x0, x1, y;
   SplashClipResult clipRes, clipRes2;
 
-  if (path->length == 0) {
+  if (path->length == 0 || path->length == 1) {
     return splashErrEmptyPath;
   }
   xPath = new SplashXPath(path, state->flatness, gTrue);