[Qgis-developer] Possible issue with QgsRubberBand
Nyall Dawson
nyall.dawson at gmail.com
Thu Aug 28 14:17:20 PDT 2014
Hi all,
I'm struggling to understand the rationale behind some logic in
QgsRubberBand::addPoint. At line 163
(https://github.com/qgis/QGIS/blob/master/src/gui/qgsrubberband.cpp#L163),
if a new geometry index is required then it is added and the specified
point added to this new geometry index.
That's fair enough, but the very next code block will then re-add that
same point to the new index. The result is that the first point will
always be added TWICE to the rubber band.
Is this deliberate? Or a bug in the code?
Nyall
More information about the Qgis-developer
mailing list