# HG changeset patch # User Santeri Piippo # Date 1394406960 -7200 # Node ID 35d2c1979d79c2c3abd81ad1cfde1118b30bc9c7 # Parent 4ace632e247b05e3197d41b09e3ed714593268aa - objects need to be compiled when added to the document diff -r 4ace632e247b -r 35d2c1979d79 src/Document.cc --- 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())