[Kst] kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Thu Aug 19 01:50:25 CEST 2004
CVS commit by arwalker:
Try to keep datamarker color away from both curve color and plot background color.
M +1 -1 kst2dplot.cpp 1.232
--- kdeextragear-2/kst/kst/kst2dplot.cpp #1.231:1.232
@@ -1278,5 +1278,5 @@ void Kst2DPlot::drawDotAt(QPainter& p, d
int Y1 = (int)(_m_Y * y + _b_Y) + position().y();
if (PlotRegion.contains(X1, Y1)) {
- QColor colorInner(curve->getColor().red() > 127 ? 0 : 255,
+ QColor colorInner((curve->getColor().red() > 127 || backgroundColor().red() > 127) ? 0 : 255,
curve->getColor().green() > 127 ? 0 : 255,
curve->getColor().blue() > 127 ? 0 : 255);
More information about the Kst
mailing list