src/ldObject.cc

changeset 764
335d929c673e
parent 762
d259256e1394
child 767
44f0d5322628
--- a/src/ldObject.cc	Mon May 05 02:19:35 2014 +0300
+++ b/src/ldObject.cc	Mon May 05 16:50:36 2014 +0300
@@ -276,6 +276,11 @@
 	// Remove this object from the list of LDObjects
 	g_LDObjects.removeOne (this);
 
+	// The renderer's mouse-over field also needs to be cleared...
+	// Remind me to implement smart pointers someday.
+	if (g_win->R()->objectAtCursor() == this)
+		g_win->R()->setObjectAtCursor (null);
+
 	delete this;
 }
 

mercurial