- objects need to be compiled when added to the document

Mon, 10 Mar 2014 01:16:00 +0200

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Mon, 10 Mar 2014 01:16:00 +0200
changeset 696
35d2c1979d79
parent 695
4ace632e247b
child 697
2766f7b037ad

- objects need to be compiled when added to the document

src/Document.cc file | annotate | diff | comparison | revisions
--- a/src/Document.cc	Mon Mar 10 01:02:51 2014 +0200
+++ b/src/Document.cc	Mon Mar 10 01:16:00 2014 +0200
@@ -1072,6 +1072,7 @@
 #endif
 
 	obj->setDocument (this);
+	g_win->R()->compileObject (obj);
 	return getObjectCount() - 1;
 }
 
@@ -1091,6 +1092,7 @@
 	history()->add (new AddHistory (pos, obj));
 	m_objects.insert (pos, obj);
 	obj->setDocument (this);
+	g_win->R()->compileObject (obj);
 
 #ifdef DEBUG
 	if (!isImplicit())

mercurial