From: Marco Pesenti Gritti Date: Thu, 24 Feb 2005 17:40:47 +0000 (+0000) Subject: Port fix for a crasher from kde bug X-Git-Tag: EVINCE_0_1_5~16 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=66e4072e961267322ce399708f83ef4ab2a12d8e;p=evince.git Port fix for a crasher from kde bug 2005-02-24 Marco Pesenti Gritti * pdf/splash/Splash.cc: Port fix for a crasher from kde bug http://bugs.kde.org/show_bug.cgi?id=97131 --- diff --git a/ChangeLog b/ChangeLog index 7f1f7220..59520503 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-02-24 Marco Pesenti Gritti + + * 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 * pdf/xpdf/pdf-document.cc: diff --git a/pdf/splash/Splash.cc b/pdf/splash/Splash.cc index 4094f4a7..6202dd18 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);