diff options
| author | Antonio Ospite <ao2@ao2.it> | 2018-10-31 10:07:04 +0000 |
|---|---|---|
| committer | Antonio Ospite <ao2@ao2.it> | 2018-11-01 17:22:44 +0000 |
| commit | 201800d1be542ac95ac9651e7aaa6f74c6c472bc (patch) | |
| tree | 4f21a07cc9c3fe57f193176cb2aa8a43d91fade3 /src/knotholder.cpp | |
| parent | SPKnot::SPKnot(): improve color style of selected knots (diff) | |
| download | inkscape-201800d1be542ac95ac9651e7aaa6f74c6c472bc.tar.gz inkscape-201800d1be542ac95ac9651e7aaa6f74c6c472bc.zip | |
KnotHolder: misc cosmetic cleanups
Remove some trailing spaces and reindent with spaces instad of tabs.
Diffstat (limited to 'src/knotholder.cpp')
| -rw-r--r-- | src/knotholder.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/knotholder.cpp b/src/knotholder.cpp index 1c5e59b2d..3f462c541 100644 --- a/src/knotholder.cpp +++ b/src/knotholder.cpp @@ -76,7 +76,7 @@ KnotHolder::KnotHolder(SPDesktop *desktop, SPItem *item, SPKnotHolderReleasedFun } KnotHolder::~KnotHolder() { - sp_object_unref(item); + sp_object_unref(item); for (std::list<KnotHolderEntity *>::iterator i = entity.begin(); i != entity.end(); ++i) { @@ -185,7 +185,7 @@ KnotHolder::knot_clicked_handler(SPKnot *knot, guint state) } // for drag, this is done by ungrabbed_handler, but for click we must do it here - + if (saved_item) { //increasingly aggressive sanity checks if (saved_item->document) { // enum is unsigned so can't be less than SP_VERB_INVALID @@ -208,7 +208,7 @@ KnotHolder::transform_selected(Geom::Affine transform){ } } -void +void KnotHolder::unselect_knots(){ if (tools_isactive(desktop, TOOLS_NODES)) { Inkscape::UI::Tools::NodeTool *nt = static_cast<Inkscape::UI::Tools::NodeTool*>(desktop->event_context); @@ -238,7 +238,7 @@ KnotHolder::knot_moved_handler(SPKnot *knot, Geom::Point const &p, guint state) this->dragging = true; } - // this was a local change and the knotholder does not need to be recreated: + // this was a local change and the knotholder does not need to be recreated: this->local_change = TRUE; for(std::list<KnotHolderEntity *>::iterator i = this->entity.begin(); i != this->entity.end(); ++i) { |
