summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: afecbab)
raw | patch | inline | side by side (parent: afecbab)
author | miklosh <miklosh@users.sourceforge.net> | |
Thu, 23 Aug 2007 09:52:05 +0000 (09:52 +0000) | ||
committer | miklosh <miklosh@users.sourceforge.net> | |
Thu, 23 Aug 2007 09:52:05 +0000 (09:52 +0000) |
src/extension/internal/pdfinput/pdf-parser.cpp | patch | blob | history | |
src/extension/internal/pdfinput/svg-builder.cpp | patch | blob | history |
diff --git a/src/extension/internal/pdfinput/pdf-parser.cpp b/src/extension/internal/pdfinput/pdf-parser.cpp
index 948f0efaaf1b814042de3cd4fdaa09d5fea07b80..b0fbfd7b584f71cc15779ed02427b99050558b11 100644 (file)
} else {
state->clip();
if (eoFill) {
- builder->clip(state, true);
+ builder->setClipPath(state, true);
} else {
- builder->clip(state);
+ builder->setClipPath(state);
}
}
diff --git a/src/extension/internal/pdfinput/svg-builder.cpp b/src/extension/internal/pdfinput/svg-builder.cpp
index ff206174eeb3d2846d504657095c20536e0baf43..e00b37943f7e0c4bcad5c564e11ffc184acd589f 100644 (file)
void SvgBuilder::setTransform(double c0, double c1, double c2, double c3,
double c4, double c5) {
+ // Avoid transforming a group with an already set clip-path
+ if ( _container->attribute("clip-path") != NULL ) {
+ pushGroup();
+ }
TRACE(("setTransform: %f %f %f %f %f %f\n", c0, c1, c2, c3, c4, c5));
svgSetTransform(_container, c0, c1, c2, c3, c4, c5);
}