Revision 43508

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.labeling.app/org.gvsig.labeling.app.mainplugin/src/main/java/org/gvsig/labeling/gui/layerproperties/GeneralLabeling.java
221 221
				auxLayer.setParentLayer(layer.getParentLayer());
222 222
				auxLayer.setLegend((IVectorLegend)targetLayer.getLegend());
223 223
				auxLayer.setProjection(targetLayer.getProjection());
224

  
224
                if( str == null ) {
225
                    str = new GeneralLabelingStrategy();
226
                    str.setLayer(layer);
227
                }
225 228
				if (str instanceof GeneralLabelingStrategy) {
226 229
					GeneralLabelingStrategy gls = (GeneralLabelingStrategy) str;
227 230
					gStr = (GeneralLabelingStrategy) gls.clone();
......
236 239
					if (ils != null) {
237 240
						ils = (ILabelingStrategy) LabelClassUtils.clone(ils);
238 241
						auxLayer.setLabelingStrategy(ils);
239
					}
242
                    }
240 243
				}
241 244
			} catch (Exception e) {
242 245
				NotificationManager.addError(

Also available in: Unified diff