Ticket #24669: patch_24669.txt

File patch_24669.txt, 814 bytes (added by DanProgs <Abenteurer.2901@…>, 9 days ago)
Line 
1### Eclipse Workspace Patch 1.0
2#P JMapViewer
3Index: src/org/openstreetmap/gui/jmapviewer/Coordinate.java
4===================================================================
5--- src/org/openstreetmap/gui/jmapviewer/Coordinate.java (revision 36494)
6+++ src/org/openstreetmap/gui/jmapviewer/Coordinate.java (working copy)
7@@ -51,13 +51,13 @@
8 }
9
10 private void writeObject(ObjectOutputStream out) throws IOException {
11- out.writeObject(x);
12- out.writeObject(y);
13+ out.writeDouble(x);
14+ out.writeDouble(y);
15 }
16
17 private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
18- x = (Double) in.readObject();
19- y = (Double) in.readObject();
20+ x = in.readDouble();
21+ y = in.readDouble();
22 }
23
24 @Override