Thanks Mr Taddei - I have applied this to both trunk and 1.1.x but I will not be able to commit until later today.If you actually find that substituting new glyphs is useful remember you can always ask and we can make some kind of preference or extension point for this.
Jody On Wed, Jan 7, 2009 at 2:56 PM, Ugo Taddei <[email protected]>wrote: > Hi, > > I was implementing my own legend (because I don't like the poygons/arcs of > the current Glyph.polygon(Rule) :-( and came across an NPE: > > Exception in thread "main" java.lang.NullPointerException > at > net.refractions.udig.ui.graphics.Glyph$8.getImageData(Glyph.java:474) > at > org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:273) > at > org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:227) > > Though this was in udig 1.1, the trunk is the same: > > } catch(RuntimeException ex){ > if(image != null && !image[0].isDisposed()) { > image[0].dispose(); > } > throw ex; > } > > Looks like a typo and I think it should read > > if(image[0] != null && !image[0].isDisposed()) { > > Cheers, > > Ugo > > -- > Ugo Taddei > > Fraunhofer Institut Intelligente Analyse- und Informationssysteme (FhG > IAIS) > http://www.iais.fraunhofer.de > Department Knowledge Discovery - IAIS.KD - > Working Group Spatial Decision Support > http://www.iais.fraunhofer.de/kd.html > phone (+49)2241-14-2184 fax (+49)2241-14-2072 > Schloss Birlinghoven, D-53754 Sankt Augustin, Germany > _______________________________________________ > User-friendly Desktop Internet GIS (uDig) > http://udig.refractions.net > http://lists.refractions.net/mailman/listinfo/udig-devel >
_______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
