Tue, 06 Aug 2013 18:50:32 +0300
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.