Revision 31490 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/rendering/styling/labeling/LabelClass.java

View differences:

LabelClass.java
150 150
	private double scale = 1;
151 151
	private String sqlQuery;
152 152
	private boolean useSqlQuery = false;
153
	private boolean changing= false;
154 153

  
155 154

  
156 155
	/**
......
386 385

  
387 386
		graphics.translate(xAnchor, yAnchor);
388 387
		graphics.rotate(theta);
389
		while (changing){}
390
			changing=true;
388
		synchronized (this) {
391 389
			float fontSizeBefore = textSymbol.getFont().getSize2D();
392 390
			try {
393 391
				textSymbol.setFontSize(fontSizeBefore*scale);
......
395 393
				textSymbol.setFontSize(fontSizeBefore);
396 394
			} catch (SymbolDrawingException e) {
397 395
				e.printStackTrace();
398
			}finally{
399
				changing=false;
400 396
			}
401

  
397
		}
402 398
		graphics.rotate(-theta);
403 399
		graphics.translate(-xAnchor, -yAnchor);
404 400

  

Also available in: Unified diff