summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d69d86a)
raw | patch | inline | side by side (parent: d69d86a)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 27 Jun 2006 04:22:32 +0000 (04:22 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 27 Jun 2006 04:22:32 +0000 (04:22 +0000) |
src/extension/internal/pdf.cpp | patch | blob | history |
index 938f570b79f1e01426a400171a1d8399ee35f00d..c85be3b56dfc7b27e68e0ce7d170421517b32cfa 100644 (file)
@@ -533,6 +533,9 @@ PrintPDF::print_fill_alpha(SVGOStringStream &/*os*/, SPStyle const *const style,
if (SP_IS_LINEARGRADIENT (SP_STYLE_FILL_SERVER (style))) {\r
\r
SPLinearGradient *lg=SP_LINEARGRADIENT(SP_STYLE_FILL_SERVER (style));\r
+\r
+ sp_gradient_ensure_vector(SP_GRADIENT(lg)); // when exporting from commandline, vector is not built\r
+\r
NR::Point p1 (lg->x1.computed, lg->y1.computed);\r
NR::Point p2 (lg->x2.computed, lg->y2.computed);\r
if (pbox && SP_GRADIENT(lg)->units == SP_GRADIENT_UNITS_OBJECTBOUNDINGBOX) {\r
@@ -571,7 +574,6 @@ PrintPDF::print_fill_alpha(SVGOStringStream &/*os*/, SPStyle const *const style,
*pdf_alpha << "/Domain [0 1]\n";\r
*pdf_alpha << "/Function <<\n/FunctionType 3\n/Functions\n[\n";\r
\r
- sp_gradient_ensure_vector(SP_GRADIENT(lg)); // when exporting from commandline, vector is not built\r
for (gint i = 0; unsigned(i) < lg->vector.stops.size() - 1; i++) {\r
*pdf_alpha << "<<\n/FunctionType 2\n/Domain [0 1]\n";\r
*pdf_alpha << "/C0 [" << lg->vector.stops[i].opacity << "]\n";\r
@@ -658,6 +660,9 @@ PrintPDF::print_fill_alpha(SVGOStringStream &/*os*/, SPStyle const *const style,
} else if (SP_IS_RADIALGRADIENT (SP_STYLE_FILL_SERVER (style))) {\r
\r
SPRadialGradient *rg=SP_RADIALGRADIENT(SP_STYLE_FILL_SERVER (style));\r
+\r
+ sp_gradient_ensure_vector(SP_GRADIENT(rg)); // when exporting from commandline, vector is not built\r
+\r
NR::Point c (rg->cx.computed, rg->cy.computed);\r
NR::Point f (rg->fx.computed, rg->fy.computed);\r
double r = rg->r.computed;\r
@@ -698,7 +703,6 @@ PrintPDF::print_fill_alpha(SVGOStringStream &/*os*/, SPStyle const *const style,
*pdf_alpha << "/Domain [0 1]\n";\r
*pdf_alpha << "/Function <<\n/FunctionType 3\n/Functions\n[\n";\r
\r
- sp_gradient_ensure_vector(SP_GRADIENT(rg)); // when exporting from commandline, vector is not built\r
for (gint i = 0; unsigned(i) < rg->vector.stops.size() - 1; i++) {\r
*pdf_alpha << "<<\n/FunctionType 2\n/Domain [0 1]\n";\r
*pdf_alpha << "/C0 [" << rg->vector.stops[i].opacity << "]\n";\r