Skip to content

Commit

Permalink
When resuming tracking, do not erase the last vertex from the previou…
Browse files Browse the repository at this point in the history
…s session
  • Loading branch information
nirvn committed Oct 21, 2023
1 parent 0d8ca2b commit e62d3c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/rubberbandmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,9 @@ void RubberbandModel::setDataFromGeometry( QgsGeometry geometry, const QgsCoordi

mPointList << pt;
}
// insert the last point twice so the resutling rubberband's current coordinate property being modified (by e.g.
// the GNSS position) will not replace the last vertex from the passed geometry
mPointList << pt;

mCurrentCoordinateIndex = mPointList.size() - 1;

Expand Down

1 comment on commit e62d3c1

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.