vs->zoom_focus = zoom_focus;
if (with_tracks) {
- *vs->gui_state = *ARDOUR_UI::instance()->gui_object_state;
+ vs->gui_state->set_state (ARDOUR_UI::instance()->gui_object_state->get_state());
}
return vs;
reposition_and_zoom (vs.leftmost_frame, vs.samples_per_pixel);
if (vs.gui_state) {
- *ARDOUR_UI::instance()->gui_object_state = *vs.gui_state;
+ ARDOUR_UI::instance()->gui_object_state->set_state (vs.gui_state->get_state());
for (TrackViewList::iterator i = track_views.begin(); i != track_views.end(); ++i) {
(*i)->clear_property_cache();
static XMLNode* get_or_add_node (XMLNode *, const std::string &);
private:
+ // no copy construction. object_map saves pointers to _state XMLNodes
+ // use set_state(get_state())
+ GUIObjectState (const GUIObjectState& other);
XMLNode _state;
// ideally we'd use a O(1) hash table here,