Ignore:
Timestamp:
2013-08-01T15:45:24+02:00 (12 years ago)
Author:
pieren
Message:

Fix transparency issue on new raster images. Temporary disable georeferences parsing not working on new cadastre WMS. Workaround on address help tool when switching to full screen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/Address.java

    r28372 r29801  
    113113            Main.map.mapView.removeMouseListener(this);
    114114        }
    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        }
    116123    }
    117124
     
    132139            setNewSelection(currentMouseNode);
    133140            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
    137144                    && !inputStreet.getText().equals("")) {
    138                 // address already present but not linked to a street
     145                // house number already present but not linked to a street
    139146                Collection<Command> cmds = new LinkedList<Command>();
    140147                addStreetNameOrRelation(currentMouseNode, cmds);
     
    154161                }
    155162                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);
    162172                    }
    163                     setSelectedWay((Way)null);
    164173                } else {
    165174                    // check if the node belongs to an associatedStreet relation
     
    528537        } else
    529538            link.setEnabled(true);
     539        link.repaint();
    530540    }
    531541   
Note: See TracChangeset for help on using the changeset viewer.