Changeset 23750 in osm for applications/editors/josm/plugins/ElevationProfile/src
- Timestamp:
- 2010-10-22T20:28:23+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui/ElevationProfileDialog.java
r23749 r23750 281 281 */ 282 282 private void updateView() { 283 if (profile == null) { // emergency exit 284 setTitle(String.format("%s: (No data)", tr("Elevation Profile"))); 285 return; 286 } 287 288 // Show name of profile in title 289 setTitle(String.format("%s: %s", tr("Elevation Profile"), profile.getName())); 290 283 291 // TODO: Offer also ft here 284 292 if (profile.hasElevationData()) { -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gui/ElevationProfilePanel.java
r23721 r23750 186 186 drawProfile(g); 187 187 drawElevationLines(g); 188 drawHCenteredString(profile.getName(), getPlotHCenter(),189 getPlotTop() + 2, g);190 188 } else { 191 189 drawAlignedString(tr("(No elevation data)"), getPlotHCenter(),
Note:
See TracChangeset
for help on using the changeset viewer.