diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2014-03-04 13:35:39 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2014-03-04 13:35:39 +0000 |
| commit | 266f00570bb353879343fe47d3f894b22301a993 (patch) | |
| tree | 17b997694807faec35e42ada72e5706b4967b5b1 /src/marker.cpp | |
| parent | UI. Fix for bug #1281822 (Keyboard shortcuts editor, duplicate description an... (diff) | |
| download | inkscape-266f00570bb353879343fe47d3f894b22301a993.tar.gz inkscape-266f00570bb353879343fe47d3f894b22301a993.zip | |
Fix for W3C test suite test filters-light-02-f.svg. Marker refX and refY defined in coordinate system of viewBox.
(bzr r13113)
Diffstat (limited to 'src/marker.cpp')
| -rw-r--r-- | src/marker.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/marker.cpp b/src/marker.cpp index fb7b0fd21..7fee16ead 100644 --- a/src/marker.cpp +++ b/src/marker.cpp @@ -206,7 +206,9 @@ void SPMarker::update(SPCtx *ctx, guint flags) { SPItemCtx rctx = get_rctx( &ictx ); // Shift according to refX, refY - this->c2p = Geom::Translate(this->viewBox.left()-this->refX.computed, this->viewBox.top()-this->refY.computed) * this->c2p; + Geom::Point ref( this->refX.computed, this->refY.computed ); + ref *= c2p; + this->c2p = this->c2p * Geom::Translate( -ref ); // And invoke parent method SPGroup::update((SPCtx *) &rctx, flags); |
