[gnome-maps/gnome-3-32] graphHopper: Add missing finish instruction



commit 1269a0a9603d052a91dfe73819b0c70ea36c2f1d
Author: Marcus Lundblad <ml update uu se>
Date:   Sat May 4 22:25:26 2019 +0200

    graphHopper: Add missing finish instruction
    
    Finish instruction was missing after folding similar
    instructions.

 src/graphHopper.js | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/graphHopper.js b/src/graphHopper.js
index 427419d..41d6bc4 100644
--- a/src/graphHopper.js
+++ b/src/graphHopper.js
@@ -251,6 +251,9 @@ var GraphHopper = class GraphHopper {
             }
         }
 
+        // push finish instruction
+        res.push(instructions[instructions.length - 1]);
+
         return res;
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]