summaryrefslogtreecommitdiffstats
path: root/src/sp-pattern.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <>2013-09-14 20:58:56 +0000
committermail-diedenrezi <>2013-09-14 20:58:56 +0000
commit59766f13490d75264fa928c0b2e8260a995510cf (patch)
tree2fe4ba09b699541c296b797d84926dfec2bf89d9 /src/sp-pattern.cpp
parentPath->Inset. remove redundant node on inner join. (Bug 1218333) (diff)
downloadinkscape-59766f13490d75264fa928c0b2e8260a995510cf.tar.gz
inkscape-59766f13490d75264fa928c0b2e8260a995510cf.zip
Fixes bug 953992 (Imported pattern fill disappers while transforming)
Fixed bugs: - https://launchpad.net/bugs/953992 (bzr r12519)
Diffstat (limited to 'src/sp-pattern.cpp')
-rw-r--r--src/sp-pattern.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sp-pattern.cpp b/src/sp-pattern.cpp
index 62811d51a..b8368a416 100644
--- a/src/sp-pattern.cpp
+++ b/src/sp-pattern.cpp
@@ -616,13 +616,13 @@ sp_pattern_create_pattern(SPPaintServer *ps,
// viewBox to pattern server
Geom::Affine vb2ps = Geom::identity();
- if (pat->viewBox_set) {
- Geom::Rect vb = *pattern_viewBox(pat);
- gdouble tmp_x = pattern_width (pat) / vb.width();
- gdouble tmp_y = pattern_height (pat) / vb.height();
+ if (shown->viewBox_set) {
+ Geom::Rect vb = *pattern_viewBox(shown);
+ gdouble tmp_x = pattern_width (shown) / vb.width();
+ gdouble tmp_y = pattern_height (shown) / vb.height();
// FIXME: preserveAspectRatio must be taken into account here too!
- vb2ps = Geom::Affine(tmp_x, 0.0, 0.0, tmp_y, pattern_x(pat) - vb.left() * tmp_x, pattern_y(pat) - vb.top() * tmp_y);
+ vb2ps = Geom::Affine(tmp_x, 0.0, 0.0, tmp_y, pattern_x(shown) - vb.left() * tmp_x, pattern_y(shown) - vb.top() * tmp_y);
}
// We must determine the size and scaling of the pattern at the time it is displayed and render