Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2005-02-24 17:40:47 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-02-24 17:40:47 (GMT)
commit66e4072e961267322ce399708f83ef4ab2a12d8e (patch)
tree3a22e619ecf1e7fcdc8f62c8a86403a646efcae7 /pdf
parent6f7b6348dbaac85f6694242a08dd1374e16d317f (diff)
Port fix for a crasher from kde bug
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
Diffstat (limited to 'pdf')
-rw-r--r--pdf/splash/Splash.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/splash/Splash.cc b/pdf/splash/Splash.cc
index 4094f4a..6202dd1 100644
--- a/pdf/splash/Splash.cc
+++ b/pdf/splash/Splash.cc
@@ -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);