summaryrefslogtreecommitdiffstats
path: root/src/marker.cpp
diff options
context:
space:
mode:
authorLiam P. White <inkscapebronyat-signgmaildotcom>2014-03-09 02:56:07 +0000
committerLiam P. White <inkscapebronyat-signgmaildotcom>2014-03-09 02:56:07 +0000
commitc515627314d3ec501dc6de928fb60b5d7895c557 (patch)
tree8a4e5c479e8b41df87494fe555934f42aa424537 /src/marker.cpp
parentRemove all trace of the Tags dialog (diff)
parentRemove useless r variable and warning (diff)
downloadinkscape-c515627314d3ec501dc6de928fb60b5d7895c557.tar.gz
inkscape-c515627314d3ec501dc6de928fb60b5d7895c557.zip
Update to trunk
(bzr r13090.1.22)
Diffstat (limited to 'src/marker.cpp')
-rw-r--r--src/marker.cpp4
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);