From 2f71967be2c8d159efd0c8e52dbfd22da2c8976e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 5 Jul 2016 23:49:50 +0200 Subject: fix crash when loading a saved visual state --- gtk2_ardour/gui_object.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gtk2_ardour/gui_object.h') 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, -- cgit v1.2.3