From 7f206882c16e36ed13028fb6349b482d077c0650 Mon Sep 17 00:00:00 2001 From: jkriege2 Date: Thu, 1 Sep 2022 22:21:24 +0200 Subject: [PATCH] JKQTPlotter: useNonvisibleLineCompression is off by default --- lib/jkqtplotter/graphs/jkqtplines.cpp | 2 +- lib/jkqtplotter/graphs/jkqtpspecialline.cpp | 4 ++-- lib/jkqtplotter/jkqtpgraphsbasestylingmixins.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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) {