[Kst] kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Mon Mar 7 21:40:14 CET 2005
CVS commit by arwalker:
Fix a problem when resizing a plot, that could cause overlapping text because the internalAlignment algorithm was using the cached font sizes, rather than the new font sizes.
M +10 -0 kst2dplot.cpp 1.369
--- kdeextragear-2/kst/kst/kst2dplot.cpp #1.368:1.369
@@ -1755,4 +1755,14 @@ void Kst2DPlot::internalAlignment(KstPai
bool offsetX, offsetY;
+ if (_oldSize != size()) {
+ XLabel->setSize(XLabel->size());
+ XLabel->setSize(YLabel->size());
+ TopLabel->setSize(TopLabel->size());
+ XTickLabel->setSize(XTickLabel->size());
+ YTickLabel->setSize(YTickLabel->size());
+ XFullTickLabel->setSize(XFullTickLabel->size());
+ YFullTickLabel->setSize(YFullTickLabel->size());
+ }
+
rectWindow = p.window();
p.setWindow(0, 0, size().width(), size().height());
More information about the Kst
mailing list