# HG changeset patch
# User Santeri Piippo <crimsondusk64@gmail.com>
# Date 1373228548 -10800
# Node ID f4c029f2a75b9b6bb12b352051ced1b17dc4132e
# Parent  77f08db90249477d13e2c7d8162bebc95f044faf
fixed: double-clicking an object and editing it that way would not register to history

diff -r 77f08db90249 -r f4c029f2a75b src/gldraw.cpp
--- a/src/gldraw.cpp	Sun Jul 07 23:17:17 2013 +0300
+++ b/src/gldraw.cpp	Sun Jul 07 23:22:28 2013 +0300
@@ -1605,8 +1605,10 @@
 	if (g_win->sel ().size () == 0)
 		return;
 	
-	LDObject* obj = g_win->sel ()[0];
+	file()->openHistory();
+	LDObject* obj = g_win->sel()[0];
 	AddObjectDialog::staticDialog (obj->getType (), obj);
+	file()->closeHistory();
 	ev->accept ();
 }