Changeset 1524 in josm for trunk/src/org


Ignore:
Timestamp:
2009-04-09T00:28:28+02:00 (16 years ago)
Author:
framm
Message:
  • make sure saved file is properly closed. fixed part of #2399 (incomplete save file)
Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/SaveActionBase.java

    r1523 r1524  
    165165                w.writeContent(layer.data);
    166166                w.footer();
     167                w.close();
    167168                // FIXME - how to close?
    168169                if (!Main.pref.getBoolean("save.keepbackup") && (tmpFile != null))
  • trunk/src/org/openstreetmap/josm/io/OsmWriter.java

    r1523 r1524  
    202202            out.print(" changeset='"+this.changeset.id+"'" );
    203203    }
     204   
     205    public void close() {
     206        out.close();
     207    }
     208   
     209    public void flush() {
     210        out.flush();
     211    }
    204212}
Note: See TracChangeset for help on using the changeset viewer.