Graphs2D: Remove deleted pointMarkers from a line


If once added custom pointmarker were removed from a lineseries, it did
not remove a pointgroup's currentMarker in a pointrenderer. The
pointrenderer only checked whether a series had a pointmarker and if it
set that to be the group's current marker. However, it never cleared it.

This patch adds an else-clause and sets the currentmarker to nullptr if
a series doesn't have a pointmarker.

Pick-to: 6.12 6.11
Fixes: QTBUG-149302
Change-Id: I4a40c4687d79b98e6f5ef52021282fe6ca083f4b
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
commit6f81a9a80c4c243a45b23f023c1527270e329831
parente2b182bdf34b0a6df5a23871e42fdb7f0fa6d3a7
authorSami Varanka <sami.varanka@qt.io>
committerSami Varanka <sami.varanka@qt.io>
commit timeMon, 31 Aug 2026 09:16:17 +0000