diff options
author | Robin Gareus <robin@gareus.org> | 2016-07-05 23:49:50 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-07-05 23:49:50 +0200 |
commit | 2f71967be2c8d159efd0c8e52dbfd22da2c8976e (patch) | |
tree | 5c1e81c561f627ccffe54f4a9d7ffd665e3b6a18 /gtk2_ardour/gui_object.h | |
parent | 412fcafda0afdb161368fcf05870770aeff79525 (diff) |
fix crash when loading a saved visual state
Diffstat (limited to 'gtk2_ardour/gui_object.h')
-rw-r--r-- | gtk2_ardour/gui_object.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/gui_object.h b/gtk2_ardour/gui_object.h index 16b43f31e3..62eeaa9a33 100644 --- a/gtk2_ardour/gui_object.h +++ b/gtk2_ardour/gui_object.h @@ -66,6 +66,9 @@ public: 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, |