summaryrefslogtreecommitdiffstats
path: root/src/gradient-chemistry.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-09-11 21:44:48 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-09-11 21:44:48 +0000
commit4c9d5ef55883fd94094371813f80cfef0befcf74 (patch)
tree2705753419ba635ce155a5821b55ec481af19125 /src/gradient-chemistry.cpp
parentMake tooltip reflect the correct range for calligraphy angle fixation (diff)
downloadinkscape-4c9d5ef55883fd94094371813f80cfef0befcf74.tar.gz
inkscape-4c9d5ef55883fd94094371813f80cfef0befcf74.zip
convert almost all libnrtype to Geom::
(bzr r6793)
Diffstat (limited to 'src/gradient-chemistry.cpp')
-rw-r--r--src/gradient-chemistry.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gradient-chemistry.cpp b/src/gradient-chemistry.cpp
index afbf16009..26945def6 100644
--- a/src/gradient-chemistry.cpp
+++ b/src/gradient-chemistry.cpp
@@ -31,6 +31,9 @@
#include "sp-tspan.h"
#include <libnr/nr-matrix-fns.h>
#include <libnr/nr-point-fns.h>
+#include <libnr/nr-matrix-ops.h>
+#include <libnr/nr-rotate-ops.h>
+#include <2geom/transforms.h>
#include "xml/repr.h"
#include "svg/svg.h"
#include "svg/svg-color.h"
@@ -299,9 +302,9 @@ sp_gradient_reset_to_userspace (SPGradient *gr, SPItem *item)
sp_repr_set_svg_double(repr, "r", width/2);
// we want it to be elliptic, not circular
- NR::Matrix squeeze = NR::Matrix (NR::translate (-center)) *
- NR::Matrix (NR::scale(1, height/width)) *
- NR::Matrix (NR::translate (center));
+ Geom::Matrix squeeze = Geom::Translate (-center) *
+ Geom::Scale(1, height/width) *
+ Geom::Translate (center);
gr->gradientTransform = squeeze;
{