OpenMap-java / openmap

OpenMap is an Open Source JavaBeans-based programmer's toolkit. Using OpenMap, you can quickly build applications and applets that access data from legacy databases and applications.
http://openmap-java.org
Other
73 stars 43 forks source link

Duplicate label on OMRaster when selected and rotated #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create OMRaster
2. Assign OMTextLabeler
3. Set some rotation != 0 (setRotationAngle(angle))
4. Call select on thi OMRaster

What is the expected output? What do you see instead?
Just one label should be visible, instead there are two

What version of the product are you using? On what operating system?
Latest (5.1.11) on windows

Please provide any additional information below.
Problem is that in method render of OMRasterObject, when selected it calls 
super.render(g)

if ((isSelected()) || (logger.isLoggable(Level.FINER))) {
 super.render(g);
}

wich calls renderLabel(g) and after it it calls also renderLabel(graphics)

When not rotation angle is set, this bug is not visible, cause second label 
draws over first...

Original issue reported on code.google.com by Eskorbut...@gmail.com on 23 Jul 2015 at 4:21

Attachments:

GoogleCodeExporter commented 9 years ago
Plz, ignore this one. I checked in latest version and it doesn't happen 
anymore. Sorry

Original comment by Eskorbut...@gmail.com on 27 Jul 2015 at 10:11