diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2014-11-21 12:13:24 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2014-11-21 12:13:24 +0000 |
| commit | d90ab1169c440127365212e344f158a33f077e4b (patch) | |
| tree | 8bf245ab6248a6bc5fd7406315894f8637244df8 /src/live_effects/lpe-perspective_path.cpp | |
| parent | Windows: add 64bit GTK3 buildtool build file. (diff) | |
| download | inkscape-d90ab1169c440127365212e344f158a33f077e4b.tar.gz inkscape-d90ab1169c440127365212e344f158a33f077e4b.zip | |
Fixed a bug pointed by suv running from comand line, also removed another desktop call
(bzr r13743)
Diffstat (limited to 'src/live_effects/lpe-perspective_path.cpp')
| -rw-r--r-- | src/live_effects/lpe-perspective_path.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/live_effects/lpe-perspective_path.cpp b/src/live_effects/lpe-perspective_path.cpp index 5183a455f..901519b4f 100644 --- a/src/live_effects/lpe-perspective_path.cpp +++ b/src/live_effects/lpe-perspective_path.cpp @@ -23,7 +23,7 @@ #include "knot-holder-entity.h" #include "knotholder.h" #include "desktop.h" - +#include <util/units.h> #include "inkscape.h" #include <2geom/path.h> @@ -97,7 +97,8 @@ LPEPerspectivePath::doBeforeEffect (SPLPEItem const* lpeitem) return; } Proj::TransfMat3x4 pmat = persp->perspective_impl->tmat; - pmat = pmat * SP_ACTIVE_DESKTOP->doc2dt(); + Geom::Affine doc2d = Geom::Scale(1, -1) * Geom::Translate(0, item->document->getHeight().value("px")); + pmat = pmat * doc2d; pmat.copy_tmat(tmat); item->apply_to_clippath(item); item->apply_to_mask(item); |
