Changeset 29801 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/Address.java
- Timestamp:
- 2013-08-01T15:45:24+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/Address.java
r28372 r29801 113 113 Main.map.mapView.removeMouseListener(this); 114 114 } 115 dialog.setVisible(false); 115 // dialog.setVisible(false); 116 // kill the window completely to fix an issue on some linux distro and 117 // full screen mode. 118 if(dialog != null) 119 { 120 dialog.dispose(); 121 dialog = null; 122 } 116 123 } 117 124 … … 132 139 setNewSelection(currentMouseNode); 133 140 String num = currentMouseNode.get(tagHouseNumber); 134 if (num != null //135 && currentMouseNode.get(tagHouseStreet) == null //136 && findWayInRelationAddr(currentMouseNode) == null //141 if (num != null 142 && currentMouseNode.get(tagHouseStreet) == null 143 && findWayInRelationAddr(currentMouseNode) == null 137 144 && !inputStreet.getText().equals("")) { 138 // addressalready present but not linked to a street145 // house number already present but not linked to a street 139 146 Collection<Command> cmds = new LinkedList<Command>(); 140 147 addStreetNameOrRelation(currentMouseNode, cmds); … … 154 161 } 155 162 if (currentMouseNode.get(tagHouseStreet) != null) { 156 inputStreet.setText(currentMouseNode.get(tagHouseStreet)); 157 if (ctrl) { 158 Collection<Command> cmds = new LinkedList<Command>(); 159 addAddrToPrimitive(currentMouseNode, cmds); 160 if (num == null) 161 applyInputNumberChange(); 163 if(Main.pref.getBoolean("cadastrewms.addr.dontUseRelation", false)) { 164 inputStreet.setText(currentMouseNode.get(tagHouseStreet)); 165 if (ctrl) { 166 Collection<Command> cmds = new LinkedList<Command>(); 167 addAddrToPrimitive(currentMouseNode, cmds); 168 if (num == null) 169 applyInputNumberChange(); 170 } 171 setSelectedWay((Way)null); 162 172 } 163 setSelectedWay((Way)null);164 173 } else { 165 174 // check if the node belongs to an associatedStreet relation … … 528 537 } else 529 538 link.setEnabled(true); 539 link.repaint(); 530 540 } 531 541
Note:
See TracChangeset
for help on using the changeset viewer.