diff options
author | Robin Gareus <robin@gareus.org> | 2015-03-21 16:50:47 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-03-21 16:50:47 +0100 |
commit | 614fc8c7bbc56c160a95de48a27e3d662dc56cac (patch) | |
tree | f6fa77426da66069a54b11af247aad85f8809d03 | |
parent | 5dc786613224e1967c7c5d040902c95f245dd2dd (diff) |
fix visual undo.
TODO: Check if it’s feasible/required to add a
GUIPropertiesChanged signal and have axis-views
subscribe to it.
-rw-r--r-- | gtk2_ardour/axis_view.h | 1 | ||||
-rw-r--r-- | gtk2_ardour/editor.cc | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/axis_view.h b/gtk2_ardour/axis_view.h index 4ce76c92ce..7334945c2c 100644 --- a/gtk2_ardour/axis_view.h +++ b/gtk2_ardour/axis_view.h @@ -75,6 +75,7 @@ class AxisView : public virtual Selectable, public PBD::ScopedConnectionList, pu virtual bool set_marked_for_display (bool); static GUIObjectState& gui_object_state(); + void clear_property_cache() { property_hashtable.clear(); } protected: diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 83190a993a..c0d96c6890 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -4461,6 +4461,7 @@ Editor::use_visual_state (VisualState& vs) *ARDOUR_UI::instance()->gui_object_state = *vs.gui_state; for (TrackViewList::iterator i = track_views.begin(); i != track_views.end(); ++i) { + (*i)->clear_property_cache(); (*i)->reset_visual_state (); } } |