summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d40159e)
raw | patch | inline | side by side (parent: d40159e)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Fri, 1 Aug 2008 16:55:14 +0000 (16:55 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Fri, 1 Aug 2008 16:55:14 +0000 (16:55 +0000) |
src/knot-holder-entity.cpp | patch | blob | history |
index ee89c93839a7d833cdae24c2b3c5f9b0cafe1bf5..d6c278d496620e3c66378559ce0ef459d9ea2e5c 100644 (file)
{
SPPattern *pat = SP_PATTERN(SP_STYLE_FILL_SERVER(SP_OBJECT(item)->style));
- gdouble x = (pattern_width(pat)*0.5);
+ gdouble x = (pattern_width(pat));
gdouble y = 0;
NR::Point delta = NR::Point(x,y);
NR::Point scale = sp_pattern_extract_scale(pat);
@@ -202,8 +202,8 @@ PatternKnotHolderEntityScale::knot_set(NR::Point const &p, NR::Point const &/*or
// Get the new scale from the position of the knotholder
NR::Point d = p_snapped - sp_pattern_extract_trans(pat);
d *= NR::Matrix(NR::rotate(-theta));
- gdouble pat_x = pattern_width(pat) * 0.5;
- gdouble pat_y = pattern_height(pat) * 0.5;
+ gdouble pat_x = pattern_width(pat);
+ gdouble pat_y = pattern_height(pat);
NR::Point scl (d[NR::X] / pat_x, d[NR::Y] / pat_y);
NR::Matrix rot = NR::Matrix(NR::scale(scl)) * NR::Matrix(NR::rotate(theta));
{
SPPattern *pat = SP_PATTERN(SP_STYLE_FILL_SERVER(SP_OBJECT(item)->style));
- gdouble x = pattern_width(pat)*0.5;
- gdouble y = pattern_height(pat)*0.5;
+ gdouble x = pattern_width(pat);
+ gdouble y = pattern_height(pat);
NR::Point delta = NR::Point(x,y);
NR::Matrix a = pat->patternTransform;
a[4] = 0;