Revision 5185

View differences:

org.gvsig.legend.urbanhorizontalsignage/trunk/org.gvsig.legend.urbanhorizontalsignage/org.gvsig.legend.urbanhorizontalsignage.lib/org.gvsig.legend.urbanhorizontalsignage.lib.impl/src/main/java/org/gvsig/legend/urbanverticalsignage/lib/impl/DefaultPictureMarkerSymbolTableLegend.java
110 110
            offset.x = feature.getDouble(this.offsetXFieldName);
111 111
        }
112 112
        if( StringUtils.isNotBlank(this.offsetYFieldName)) {
113
            offset.y = feature.getDouble(this.offsetXFieldName);
113
            offset.y = feature.getDouble(this.offsetYFieldName);
114 114
        }
115 115
        symbol.setOffset(offset);
116 116
        
......
120 120
            symbol.setRotation(0);
121 121
        }
122 122
        
123
        if( drawLineToOffset && (offset.x==0 || offset.y==0))    {
123
        if( drawLineToOffset && (offset.x!=0 || offset.y!=0))    {
124 124
            symbol.setDrawLineToOffset(true);
125 125
            symbol.setLineToOffsetColor(
126 126
                    getColor(
......
172 172
                SimpleImage image = (SimpleImage) f.getFromProfile(this.imageFieldName);
173 173
                if( image != null ) {
174 174
                    images[0] = image.getBufferedImage();
175
                    images[1] = images[0];
175 176
                }
176 177
                image = (SimpleImage) f.getFromProfile(this.imageSelectedFieldName);
177
                if( image != null ) {
178
                if( image != null && !image.isEmpty() ) {
178 179
                    images[1] = image.getBufferedImage();
179 180
                }
180 181
            }

Also available in: Unified diff