Sun, 27 Apr 2014 03:51:10 +0300
- when setting the current document, the GL compiler must be told that a merge is necessary *before* setting the renderer's document as setDocument will call zoomToFit which renders the scene. this rendering must trigger a merge or ldforge crashes if a new document is created when a document is already open.
src/ldDocument.cc | file | annotate | diff | comparison | revisions |
--- a/src/ldDocument.cc Thu Apr 24 02:08:53 2014 +0300 +++ b/src/ldDocument.cc Sun Apr 27 03:51:10 2014 +0300 @@ -1399,8 +1399,8 @@ g_win->updateDocumentListItem (f); g_win->buildObjList(); g_win->updateTitle(); + g_win->R()->compiler()->needMerge(); g_win->R()->setDocument (f); - g_win->R()->compiler()->needMerge(); print ("Changed file to %1", f->getDisplayName()); } }