Skip to content

Commit 21bbaf4

Browse files
authored
Fix crash when converting a QPointF to a QPoint that was NAN
2 parents b1d525c + 350ae81 commit 21bbaf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/KDChart/Cartesian/DiagramFlavors/KDChartNormalPlotter_p.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ void NormalPlotter::paint(PaintContext *ctx)
145145
m_private->addLabel(&lpc, sourceIndex, nullptr, pts, Position::NorthWest,
146146
Position::NorthWest, point.value);
147147

148-
const bool lineValid = a.toPoint() != b.toPoint() && PaintingHelpers::isFinite(a);
148+
const bool lineValid = PaintingHelpers::isFinite(a) && a.toPoint() != b.toPoint();
149149
if (lineValid) {
150150
// data line
151151
lineList.append(LineAttributesInfo(sourceIndex, a, b));

0 commit comments

Comments
 (0)