fix visual undo.

TODO: Check if it’s feasible/required to add a
GUIPropertiesChanged signal and have axis-views
subscribe to it.
This commit is contained in:
Robin Gareus 2015-03-21 16:50:47 +01:00
parent 5dc7866132
commit 614fc8c7bb
2 changed files with 2 additions and 0 deletions

View file

@ -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:

View file

@ -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 ();
}
}