Changeset 22581 in osm


Ignore:
Timestamp:
2010-08-06T08:07:03+02:00 (14 years ago)
Author:
jttt
Message:

Fix alpha painting preference

Location:
applications/editors/josm/plugins/wmsplugin/src/wmsplugin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/GeorefImage.java

    r22286 r22581  
    1414import javax.imageio.ImageIO;
    1515
    16 import org.openstreetmap.josm.Main;
    1716import org.openstreetmap.josm.data.coor.EastNorth;
    1817import org.openstreetmap.josm.gui.NavigatableComponent;
     
    7978                }
    8079
    81                 boolean alphaChannel = Main.pref.getBoolean("wmsplugin.alpha_channel") && image.getTransparency() != Transparency.OPAQUE;
     80                boolean alphaChannel = WMSLayer.PROP_ALPHA_CHANNEL.get() && image.getTransparency() != Transparency.OPAQUE;
    8281
    8382                try {
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSLayer.java

    r22550 r22581  
    5050                new ImageIcon(Toolkit.getDefaultToolkit().createImage(WMSPlugin.class.getResource("/images/wms_small.png")));
    5151
    52         private static final BooleanProperty PROP_ALPHA_CHANNEL = new BooleanProperty("wmsplugin.alpha_channel", true);
     52        public static final BooleanProperty PROP_ALPHA_CHANNEL = new BooleanProperty("wmsplugin.alpha_channel", true);
    5353
    5454        public int messageNum = 5; //limit for messages per layer
Note: See TracChangeset for help on using the changeset viewer.