Ignore:
Timestamp:
2009-08-22T12:05:10+02:00 (15 years ago)
Author:
tordanik
Message:

apply patch by plaicy;
closes #3307

Location:
applications/editors/josm/plugins/graphview
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/graphview/build.xml

    r16836 r17210  
    5757                <attribute name="Plugin-Description" value="Visualizes routing information as a routing graph."/>
    5858                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/Graphview"/>
    59                 <attribute name="Plugin-Mainversion" value="1893"/>
     59                <attribute name="Plugin-Mainversion" value="1986"/>
    6060                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    6161            </manifest>
  • applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/GraphViewPlugin.java

    r16520 r17210  
    6767        }
    6868
    69         private final GraphViewDialog laneDialog;
    70 
    7169        private final GraphViewPreferences preferences;
    7270
     
    7977                preferences = GraphViewPreferences.getInstance();
    8078                this.preferences.addObserver(this);
    81 
    82                 laneDialog = new GraphViewDialog(this);
    8379
    8480        }
     
    235231        public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) {
    236232                if (newFrame != null) {
    237                         newFrame.addToggleDialog(laneDialog);
     233                        if (oldFrame == null) {
     234                                final GraphViewDialog laneDialog
     235                                        = new GraphViewDialog(this);
     236                                newFrame.addToggleDialog(laneDialog);
     237                        }
    238238                        Layer.listeners.add(this);
    239239                } else {
Note: See TracChangeset for help on using the changeset viewer.