diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2012-04-07 21:16:34 +0000 |
|---|---|---|
| committer | Johan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl> | 2012-04-07 21:16:34 +0000 |
| commit | fe90e67c8b69a8c9ee4022b6e581eefa798b3353 (patch) | |
| tree | 7ee773221305199e6d01d8b88f22c7c322cf40dd /src | |
| parent | powerstroke: fix line caps for end/start knots with no handle (1st deriv == 0) (diff) | |
| download | inkscape-fe90e67c8b69a8c9ee4022b6e581eefa798b3353.tar.gz inkscape-fe90e67c8b69a8c9ee4022b6e581eefa798b3353.zip | |
circle tool: fix shift click to reset to full circle for start angle node
(bzr r11179)
Diffstat (limited to 'src')
| -rw-r--r-- | src/object-edit.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/object-edit.cpp b/src/object-edit.cpp index 1c828e1e5..528f202ab 100644 --- a/src/object-edit.cpp +++ b/src/object-edit.cpp @@ -719,6 +719,7 @@ class ArcKnotHolderEntityStart : public KnotHolderEntity { public: virtual Geom::Point knot_get(); virtual void knot_set(Geom::Point const &p, Geom::Point const &origin, guint state); + virtual void knot_click(guint state); }; class ArcKnotHolderEntityEnd : public KnotHolderEntity { @@ -793,6 +794,17 @@ ArcKnotHolderEntityStart::knot_get() } void +ArcKnotHolderEntityStart::knot_click(guint state) +{ + SPGenericEllipse *ge = SP_GENERICELLIPSE(item); + + if (state & GDK_SHIFT_MASK) { + ge->end = ge->start = 0; + (static_cast<SPObject *>(ge))->updateRepr(); + } +} + +void ArcKnotHolderEntityEnd::knot_set(Geom::Point const &p, Geom::Point const &/*origin*/, guint state) { Inkscape::Preferences *prefs = Inkscape::Preferences::get(); |
