[gnome-maps/wip/mlundblad/fix-selecting-turnpoint: 1/2] mapView: Fix removing previous turnpoint marker
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-maps/wip/mlundblad/fix-selecting-turnpoint: 1/2] mapView: Fix removing previous turnpoint marker
- Date: Thu, 22 Sep 2022 20:48:25 +0000 (UTC)
commit a713909a03f8701c37fca8647f38ac82bc939866
Author: Marcus Lundblad <ml dfupdate se>
Date:   Thu Sep 22 22:45:39 2022 +0200
    mapView: Fix removing previous turnpoint marker
    
    Use the proper remove_marker() method to remove
    the previous marker when showing a new turnpoint.
 src/mapView.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/mapView.js b/src/mapView.js
index e6c3c96e..3623416c 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -774,7 +774,7 @@ export class MapView extends Gtk.Overlay {
 
     showTurnPoint(turnPoint) {
         if (this._turnPointMarker)
-            this._turnPointMarker.destroy();
+            this._instructionMarkerLayer.remove_marker(this._turnPointMarker);
 
         this._turnPointMarker = null;
         if (turnPoint.isStop())
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]