summaryrefslogtreecommitdiffstats
path: root/src/extension/internal/javafx-out.cpp
diff options
context:
space:
mode:
authorThomas Holder <thomas@thomas-holder.de>2018-09-23 16:17:50 +0000
committerThomas Holder <thomas@thomas-holder.de>2018-09-23 16:17:50 +0000
commit72be775b99d281e93610f3d8db719ec63e27e8f7 (patch)
treee275ea152a6aa3edf808dd7c258681f2b65763a2 /src/extension/internal/javafx-out.cpp
parentfix "Arrange" dialog with inverted y-axis (diff)
downloadinkscape-72be775b99d281e93610f3d8db719ec63e27e8f7.tar.gz
inkscape-72be775b99d281e93610f3d8db719ec63e27e8f7.zip
fix .odg and .fx export with inverted y-axis
Diffstat (limited to 'src/extension/internal/javafx-out.cpp')
-rw-r--r--src/extension/internal/javafx-out.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/extension/internal/javafx-out.cpp b/src/extension/internal/javafx-out.cpp
index ffe50bc7d..29cfb4795 100644
--- a/src/extension/internal/javafx-out.cpp
+++ b/src/extension/internal/javafx-out.cpp
@@ -492,8 +492,7 @@ bool JavaFXOutput::doCurve(SPItem *item, const String &id)
}
// convert the path to only lineto's and cubic curveto's:
- Geom::Scale yflip(1.0, -1.0); /// @fixme hardcoded desktop transform!
- Geom::Affine tf = item->i2dt_affine() * yflip;
+ Geom::Affine tf = item->i2doc_affine();
Geom::PathVector pathv = pathv_to_linear_and_cubic_beziers( shape->_curve->get_pathvector() * tf );
//Count the NR_CURVETOs/LINETOs (including closing line segment)
@@ -632,8 +631,7 @@ bool JavaFXOutput::doCurve(SPItem *item, const String &id)
}
// convert the path to only lineto's and cubic curveto's:
- Geom::Scale yflip(1.0, -1.0); /// @fixme hardcoded desktop transform
- Geom::Affine tf = item->i2dt_affine() * yflip;
+ Geom::Affine tf = item->i2doc_affine();
Geom::PathVector pathv = pathv_to_linear_and_cubic_beziers( curve->get_pathvector() * tf );
//Count the NR_CURVETOs/LINETOs (including closing line segment)