diff --git a/lib/jkqtplotter/graphs/jkqtplines.cpp b/lib/jkqtplotter/graphs/jkqtplines.cpp index 96fc337472..b245762d62 100644 --- a/lib/jkqtplotter/graphs/jkqtplines.cpp +++ b/lib/jkqtplotter/graphs/jkqtplines.cpp @@ -125,7 +125,7 @@ void JKQTPXYLineGraph::draw(JKQTPEnhancedPainter& painter) { //qDebug()<<"JKQTPXYLineGraph::draw(): vec_linesP.size()=="< linesToDraw; - if (getUseNonvisibleLineCompression()) linesToDraw=JKQTPClipPolyLines(JKQTPSimplifyPolyLines(vec_linesP, p.widthF()*getNonvisibleLineCompressionAgressiveness()), cliprect); + if (getUseNonvisibleLineCompression()) linesToDraw=JKQTPClipPolyLines(JKQTPSimplifyPolyLines(vec_linesP, getNonvisibleLineCompressionAgressiveness()), cliprect); else linesToDraw=JKQTPClipPolyLines(vec_linesP, cliprect); //qDebug()<<"JKQTPXYLineGraph::draw(): linesToDraw.size()=="< pl_fordrawing; if (isHighlighted() || getDrawLine()) { - if (getUseNonvisibleLineCompression()) pl_fordrawing=JKQTPClipPolyLine(JKQTPSimplifyPolyLines(pl, p.widthF()*getNonvisibleLineCompressionAgressiveness()), cliprect); + if (getUseNonvisibleLineCompression()) pl_fordrawing=JKQTPClipPolyLine(JKQTPSimplifyPolyLines(pl, getNonvisibleLineCompressionAgressiveness()), cliprect); else pl_fordrawing=JKQTPClipPolyLine(pl, cliprect); } @@ -456,7 +456,7 @@ void JKQTPSpecialLineVerticalGraph::draw(JKQTPEnhancedPainter& painter) { QList pl_fordrawing; if (isHighlighted() || getDrawLine()) { - if (getUseNonvisibleLineCompression()) pl_fordrawing=JKQTPClipPolyLine(JKQTPSimplifyPolyLines(pl, p.widthF()*getNonvisibleLineCompressionAgressiveness()), cliprect); + if (getUseNonvisibleLineCompression()) pl_fordrawing=JKQTPClipPolyLine(JKQTPSimplifyPolyLines(pl, getNonvisibleLineCompressionAgressiveness()), cliprect); else pl_fordrawing=JKQTPClipPolyLine(pl, cliprect); } diff --git a/lib/jkqtplotter/jkqtpgraphsbasestylingmixins.cpp b/lib/jkqtplotter/jkqtpgraphsbasestylingmixins.cpp index 6a0a8ac28b..e0da420c6e 100644 --- a/lib/jkqtplotter/jkqtpgraphsbasestylingmixins.cpp +++ b/lib/jkqtplotter/jkqtpgraphsbasestylingmixins.cpp @@ -163,7 +163,7 @@ QPen JKQTPGraphLineStyleMixin::getLinePenForRects(JKQTPEnhancedPainter &painter, JKQTPGraphLinesCompressionMixin::JKQTPGraphLinesCompressionMixin(): - m_useNonvisibleLineCompression(true), + m_useNonvisibleLineCompression(false), m_nonvisibleLineCompressionAgressiveness(1) {