diff options
| author | Denis Declara <declara91@gmail.com> | 2012-04-15 12:29:45 +0000 |
|---|---|---|
| committer | Denis Declara <declara91@gmail.com> | 2012-04-15 12:29:45 +0000 |
| commit | 6b5ff661a46ea1779c86f6947006c5ed32926117 (patch) | |
| tree | a5b170f0830854e99ad065055ee2a3996933e614 /src/object-edit.cpp | |
| parent | Improved User interface. (diff) | |
| parent | i18n. Fix for Bug #980518 (Please use c-format). (diff) | |
| download | inkscape-6b5ff661a46ea1779c86f6947006c5ed32926117.tar.gz inkscape-6b5ff661a46ea1779c86f6947006c5ed32926117.zip | |
Trunk merge
(bzr r11073.1.15)
Diffstat (limited to 'src/object-edit.cpp')
| -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(); |
