[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Thu Dec 16 20:10:38 CET 2004


CVS commit by arwalker: 

Maintain forwards and backwards compatibility for the square setting for exported plots.


  M +5 -2      kstdoc.cpp   1.145
  M +5 -0      kstgraphfiledialog_i.cpp   1.21


--- kdeextragear-2/kst/kst/kstdoc.cpp  #1.144:1.145
@@ -497,5 +497,8 @@ void KstDoc::saveDocument(QTextStream& t
     << KstApp::inst()->graphFileDlg()->imageYSize()
     << "\" display=\""
-    << (KstApp::inst()->graphFileDlg()->display());
+    << KstApp::inst()->graphFileDlg()->display()
+    << "\" square=\""
+    << (KstApp::inst()->graphFileDlg()->display() == 1 ? "true" : "false");
+
   if (KstApp::inst()->graphFileDlg()->autoSaving()) {
     ts << "\" url=\"" << QStyleSheet::escape(KstApp::inst()->graphFileDlg()->url().url());

--- kdeextragear-2/kst/kst/kstgraphfiledialog_i.cpp  #1.20:1.21
@@ -126,4 +126,9 @@ void KstGraphFileDialogI::saveProperties
   cfg.writeEntry("YSize", _h);
   cfg.writeEntry("Display", _displayOption); 
+  if (_displayOption == 1) {
+    cfg.writeEntry("Square", true);
+  } else {
+    cfg.writeEntry("Square", false);
+  }
   cfg.writeEntry("All", _allWindows);
   cfg.writeEntry("Format", _format);





More information about the Kst mailing list