summaryrefslogtreecommitdiffstats
path: root/src/draw-context.cpp
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2012-09-05 16:06:23 +0000
committerJazzyNico <nicoduf@yahoo.fr>2012-09-05 16:06:23 +0000
commit12aa75f73fc4de4f4d504085cd32a80983eab623 (patch)
treeef69e46b5a706213f03ea5783b2fa775993946cb /src/draw-context.cpp
parentFix for 172236 : Dropper in Fill-Stroke dialog, changed to be a one time only... (diff)
downloadinkscape-12aa75f73fc4de4f4d504085cd32a80983eab623.tar.gz
inkscape-12aa75f73fc4de4f4d504085cd32a80983eab623.zip
Freehand. Fix for Bug #597136 (dots are created with wrong cy value).
(bzr r11653)
Diffstat (limited to 'src/draw-context.cpp')
-rw-r--r--src/draw-context.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/draw-context.cpp b/src/draw-context.cpp
index 2e490d184..e33c94bda 100644
--- a/src/draw-context.cpp
+++ b/src/draw-context.cpp
@@ -808,7 +808,7 @@ void spdc_create_single_dot(SPEventContext *ec, Geom::Point const &pt, char cons
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
Geom::Affine const i2d (item->i2dt_affine ());
- Geom::Point pp = pt;
+ Geom::Point pp = pt * i2d.inverse();
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
@@ -827,7 +827,6 @@ 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();
- item->set_item_transform(i2d.inverse());
sp_desktop_selection(desktop)->set(item);