[gnome-maps/wip/jonasdn/storedRoute: 7/13] placeFormatter: Format stored route



commit 85b8b50abcd97f7be0d5e56b3bdc865a3c9528b7
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Thu Feb 12 20:44:07 2015 +0100

    placeFormatter: Format stored route
    
    https://bugzilla.gnome.org/show_bug.cgi?id=744425

 src/placeFormatter.js |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/placeFormatter.js b/src/placeFormatter.js
index 895a762..b01d480 100644
--- a/src/placeFormatter.js
+++ b/src/placeFormatter.js
@@ -21,9 +21,10 @@
  */
 
 const Geocode = imports.gi.GeocodeGlib;
-
 const Lang = imports.lang;
 
+const StoredRoute = imports.storedRoute;
+
 const PlaceFormatter = new Lang.Class({
     Name: "PlaceFormatter",
 
@@ -57,6 +58,9 @@ const PlaceFormatter = new Lang.Class({
     },
 
     getDetailsString: function() {
+        if (this._place instanceof StoredRoute.StoredRoute)
+            return this._place.viaString;
+
         return this.rows.map((function(row) {
             return row.map((function(prop) {
                 return this._place[prop];


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