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/sp-rect.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/sp-rect.cpp')
| -rw-r--r-- | src/sp-rect.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sp-rect.cpp b/src/sp-rect.cpp index e5ffa8b39..ad8ba38a9 100644 --- a/src/sp-rect.cpp +++ b/src/sp-rect.cpp @@ -19,7 +19,7 @@ #include <display/curve.h> -#include <libnr/nr-matrix-div.h> +#include <libnr/nr-matrix-ops.h> #include <libnr/nr-matrix-fns.h> #include "inkscape.h" @@ -385,10 +385,10 @@ sp_rect_set_transform(SPItem *item, NR::Matrix const &xform) sp_item_adjust_stroke(item, sqrt(fabs(sw * sh))); // Adjust pattern fill - sp_item_adjust_pattern(item, xform / ret); + sp_item_adjust_pattern(item, xform * ret.inverse()); // Adjust gradient fill - sp_item_adjust_gradient(item, xform / ret); + sp_item_adjust_gradient(item, xform * ret.inverse()); item->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG | SP_OBJECT_STYLE_MODIFIED_FLAG); |
