[Kst] kdeextragear-2/kst/kst

Barth Netterfield netterfield at astro.utoronto.ca
Fri Mar 4 23:51:38 CET 2005


CVS commit by netterfield: 

The position of the X axis should have nothing to do with the height of
the Y Tick labels.

We need to add 1.5 x YLabel height for 1.5 line spacing, which I think looks nice.


  M +1 -2      kst2dplot.cpp   1.366


--- kdeextragear-2/kst/kst/kst2dplot.cpp  #1.365:1.366
@@ -1819,6 +1819,5 @@ void Kst2DPlot::setBorders(double& xleft
 
   xleft_bdr_px  = tpy.maxWidth;
-  xleft_bdr_px += YLabel->lineSpacing(p);
-  xleft_bdr_px += YTickLabel->lineSpacing(p) / 4;
+  xleft_bdr_px += 3*YLabel->lineSpacing(p)/2;
 
   // calculate the right border




More information about the Kst mailing list