[Kst] [Bug 129699] Tick mark spacing is not saved in the .kst

Andrew Walker arwalker at sumusltd.com
Fri Jun 23 18:32:28 CEST 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=129699         
arwalker sumusltd com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From arwalker sumusltd com  2006-06-23 18:32 -------
SVN commit 554308 by arwalker:

BUG:129699 Remember the major tick spacing when saving and loading files

 M  +8 -0      kst2dplot.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/kst2dplot.cpp #554307:554308
 @ -325,6 +325,10  @
         _majorGridColorDefault = el.text() != "0";
       } else if (el.tagName() == "minorgridcolordefault") {
         _minorGridColorDefault = el.text() != "0";
+      } else if (el.tagName() == "ymajorticks") {
+        _yMajorTicks = el.text().toInt();
+      } else if (el.tagName() == "xmajorticks") {
+        _xMajorTicks = el.text().toInt();
       } else if (el.tagName() == "xinterpret") {
         _isXAxisInterpreted = el.text() != "0";
       } else if (el.tagName() == "xinterpretas") {
 @ -2837,6 +2841,10  @
   ts << indent << "<xminorticks>" << _reqXMinorTicks << "</xminorticks>" << endl;
   ts << indent << "<yminorticks>" << _reqYMinorTicks << "</yminorticks>" << endl;
 
+  // major ticks
+  ts << indent << "<xmajorticks>" << _xMajorTicks << "</xmajorticks>" << endl;
+  ts << indent << "<ymajorticks>" << _yMajorTicks << "</ymajorticks>" << endl;
+
   // tick placement
   ts << indent << "<xticksinplot>" << _xTicksInPlot << "</xticksinplot>" << endl;
   ts << indent << "<xticksoutplot>" << _xTicksOutPlot << "</xticksoutplot>" << endl;


More information about the Kst mailing list