fixed crashing with inlining

Tue, 06 Aug 2013 18:50:32 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Tue, 06 Aug 2013 18:50:32 +0300
changeset 439
c3421d3f01a2
parent 438
2f9eade6eb6f
child 440
ce2009d50c61

fixed crashing with inlining

src/gui_editactions.cpp file | annotate | diff | comparison | revisions
--- a/src/gui_editactions.cpp	Tue Aug 06 16:23:16 2013 +0300
+++ b/src/gui_editactions.cpp	Tue Aug 06 18:50:32 2013 +0300
@@ -133,11 +133,11 @@
 		for (LDObject* inlineobj : objs) {
 			str line = inlineobj->raw();
 			delete inlineobj;
-		
+			
 			LDObject* newobj = parseLine (line);
 			LDFile::current()->insertObj (idx++, newobj);
 			g_win->sel() << newobj;
-			g_win->R()->compileObject (inlineobj);
+			g_win->R()->compileObject (newobj);
 		}
 		
 		// Delete the subfile now as it's been inlined.

mercurial