[Kst] extragear/graphics/kst/kst
Rick Chern
rchern at interchange.ubc.ca
Sat May 28 02:02:06 CEST 2005
SVN commit 418915 by rchern:
Don't align top and bottom axes with other plots when they are suppressed
M +4 -3 kst2dplot.cpp
--- trunk/extragear/graphics/kst/kst/kst2dplot.cpp #418914:418915
@@ -2082,7 +2082,7 @@
int xLabelLineSpacing = XLabel->lineSpacing(p);
if (_suppressBottom) {
- ybot_bdr_px = 0;
+ ybot_bdr_px = 1;
} else {
ybot_bdr_px = tpx.maxHeight;
ybot_bdr_px += xLabelLineSpacing;
@@ -2422,10 +2422,11 @@
if (in_xright_bdr_px > 0.001) { // x-right border overridden
xright_bdr_px = in_xright_bdr_px;
}
- if (in_ybot_bdr_px > 0.001) { // y-bottom border overridden
+ // only override if borders are not suppressed
+ if (!_suppressBottom && in_ybot_bdr_px > 0.001) { // y-bottom border overridden
ybot_bdr_px = in_ybot_bdr_px;
}
- if (in_ytop_bdr_px > 0.001) { // y-top border overridden
+ if (!_suppressTop && in_ytop_bdr_px > 0.001) { // y-top border overridden
ytop_bdr_px = in_ytop_bdr_px;
}
More information about the Kst
mailing list