Commit 43bed4aa authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Fix bugs #3728 and #3750

parent c7bcef87
2005-07-15 Albert Astals Cid <aacid@kde.org>
* splash/Splash.cc: Fix bugs #3728 and #3750
2005-07-15 Martin Kretzschmar <martink@gnome.org>
* test/gtk-cairo-test.cc: update for 2005-06-27 change to actually
......
......@@ -254,6 +254,11 @@ SplashError Splash::stroke(SplashPath *path) {
return splashErrEmptyPath;
}
xPath = new SplashXPath(path, state->flatness, gFalse);
if (xPath->segs == NULL)
{
delete xPath;
return splashErrEmptyPath;
}
if (state->lineDashLength > 0) {
xPath2 = makeDashedPath(xPath);
delete xPath;
......@@ -647,6 +652,11 @@ SplashError Splash::fillWithPattern(SplashPath *path, GBool eo,
}
xPath = new SplashXPath(path, state->flatness, gTrue);
xPath->sort();
if (xPath->segs == NULL)
{
delete xPath;
return splashErrEmptyPath;
}
scanner = new SplashXPathScanner(xPath, eo);
// get the min and max x and y values
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment