summaryrefslogtreecommitdiff
path: root/src/mainwin.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwin.cc')
-rw-r--r--src/mainwin.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc
index daea6e3..30e1a17 100644
--- a/src/mainwin.cc
+++ b/src/mainwin.cc
@@ -95,6 +95,10 @@
#endif // ENABLE_CGAL
+#ifndef OPENCSG_VERSION_STRING
+#define OPENCSG_VERSION_STRING "unknown, <1.3.2"
+#endif
+
// Global application state
unsigned int GuiLocker::gui_locked = 0;
@@ -1031,8 +1035,7 @@ bool MainWindow::compileTopLevelDocument(bool reload)
{
bool shouldcompiletoplevel = !reload;
- if (reload &&
- (fileChangedOnDisk() && checkEditorModified()) ||
+ if ((reload && fileChangedOnDisk() && checkEditorModified()) ||
includesChanged()) {
shouldcompiletoplevel = true;
refreshDocument();
contact: Jan Huwald // Impressum