simbologia.diff

Parche - Cesar Martinez Izquierdo, 07/31/2014 06:40 AM

Download (1.76 KB)

View differences:

org.gvsig.desktop.plugin/org.gvsig.labeling.app/org.gvsig.labeling.app.mainplugin/src/main/java/org/gvsig/labeling/symbol/SmartTextSymbol.java (working copy)
226 226
		if (!isShapeVisible()) return;
227 227

  
228 228
		setMargin(0);
229
		if (text=="") {
230
			return;
231
		}
229 232

  
230

  
231 233
		char[] text_chars = text.toCharArray();
232 234
		tp = new TextPath(g, geom, text_chars, getFont(),
233 235
				(float) characterSpacing, (float) characterWidth, kerning,
org.gvsig.desktop.library/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.impl/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/legend/styling/TextPath.java (working copy)
165 165
		float interval = (float) gv.getVisualBounds().getWidth()/(gv.getNumGlyphs()*3);
166 166

  
167 167
		PathLength pl = new PathLength(shape.getShape());
168
		if (pl.lengthOfPath()==0.0f) {
169
			return shape; 
170
		}
168 171

  
169 172
		GeneralPathX correctedPath = new GeneralPathX();
170 173
		int controlPoints = 16;