summaryrefslogtreecommitdiffstats
path: root/src/draw-context.cpp
diff options
context:
space:
mode:
authorThomas Holder <speleo3@users.sourceforge.net>2009-11-23 19:31:42 +0000
committerspeleo3 <speleo3@users.sourceforge.net>2009-11-23 19:31:42 +0000
commit7b19c82f7ff220b7962d201739c0d2f3e2e6be74 (patch)
treebaf777eefc4e3cf2e77ad3e8848573c37639b9b9 /src/draw-context.cpp
parentOne line fix from ~suv (Ted knows) to fix our XCF export. Fixes 484016. (diff)
downloadinkscape-7b19c82f7ff220b7962d201739c0d2f3e2e6be74.tar.gz
inkscape-7b19c82f7ff220b7962d201739c0d2f3e2e6be74.zip
fix bug 427267, single dots inside transformed groups misplaced
(bzr r8835)
Diffstat (limited to 'src/draw-context.cpp')
-rw-r--r--src/draw-context.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/draw-context.cpp b/src/draw-context.cpp
index d2794f0c2..de9a7c7e5 100644
--- a/src/draw-context.cpp
+++ b/src/draw-context.cpp
@@ -841,7 +841,7 @@ void spdc_create_single_dot(SPEventContext *ec, Geom::Point const &pt, char cons
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
Geom::Matrix const i2d (sp_item_i2d_affine (item));
- Geom::Point pp = pt * i2d;
+ Geom::Point pp = pt;
double rad = 0.5 * prefs->getDouble(tool_path + "/dot-size", 3.0);
if (event_state & GDK_MOD1_MASK) {
/* TODO: We vary the dot size between 0.5*rad and 1.5*rad, where rad is the dot size
@@ -860,6 +860,7 @@ void spdc_create_single_dot(SPEventContext *ec, Geom::Point const &pt, char cons
sp_repr_set_svg_double (repr, "sodipodi:rx", rad * stroke_width);
sp_repr_set_svg_double (repr, "sodipodi:ry", rad * stroke_width);
item->updateRepr();
+ sp_item_set_item_transform(item, i2d.inverse());
sp_desktop_selection(desktop)->set(item);