[Kst] extragear/graphics/kst/src/libkstapp

Barth Netterfield netterfield at astro.utoronto.ca
Thu Aug 31 03:10:24 CEST 2006


SVN commit 579080 by netterfield:

Make sure that the internal scalars (C_PI, etc) get created early enough when 
loading a .kst file, and at all when loading curves from command line.



 M  +3 -2      kstdoc.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/kstdoc.cpp #579079:579080
@@ -79,6 +79,7 @@
   _stopping = false;
   _nextEventPaint = false;
   _title = "Untitled";
+  createScalars();
 }
 
 KstDoc::~KstDoc() {
@@ -291,6 +292,8 @@
     KstDebug::self()->log(err, KstDebug::Warning);
   }
 
+  createScalars();
+
   QDomNode n = docElem.firstChild();
   count = docElem.childNodes().length();
   app->slotUpdateProgress(count, handled, readingDocument);
@@ -548,8 +551,6 @@
     QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
   }
 
-  createScalars();
-
   app->slotUpdateProgress(0, 0, i18n("Synchronizing data"));
   kapp->dcopClient()->setAcceptCalls(true);
 


More information about the Kst mailing list