diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-08-01 18:10:26 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-08-01 18:10:26 +0000 |
| commit | 28945119489f6af06469312dad4286b27c57c493 (patch) | |
| tree | 997fb2305b3dda5d82452a4d6733793c8fc11bcf /src/knotholder.cpp | |
| parent | change knot.h to Geom::Point only instead of NR::Point. (diff) | |
| download | inkscape-28945119489f6af06469312dad4286b27c57c493.tar.gz inkscape-28945119489f6af06469312dad4286b27c57c493.zip | |
replace matrix division code.
(bzr r6512)
Diffstat (limited to 'src/knotholder.cpp')
| -rw-r--r-- | src/knotholder.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/knotholder.cpp b/src/knotholder.cpp index 629aa7368..f4892b008 100644 --- a/src/knotholder.cpp +++ b/src/knotholder.cpp @@ -33,7 +33,6 @@ #include "xml/repr.h" // for debugging only -#include <libnr/nr-matrix-div.h> #include <glibmm/i18n.h> class SPDesktop; @@ -140,8 +139,8 @@ KnotHolder::knot_moved_handler(SPKnot *knot, Geom::Point const &p, guint state) for(std::list<KnotHolderEntity *>::iterator i = this->entity.begin(); i != this->entity.end(); ++i) { KnotHolderEntity *e = *i; if (e->knot == knot) { - NR::Point const q = p / from_2geom(sp_item_i2d_affine(item)); - e->knot_set(q, e->knot->drag_origin / from_2geom(sp_item_i2d_affine(item)), state); + NR::Point const q = p * sp_item_i2d_affine(item).inverse(); + e->knot_set(q, e->knot->drag_origin * sp_item_i2d_affine(item).inverse(), state); break; } } |
