Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate label on OMRaster when selected and rotated #14

Open
GoogleCodeExporter opened this issue Aug 3, 2015 · 1 comment
Open

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 23 Jul 2015 at 4:21

Attachments:

@GoogleCodeExporter
Copy link
Author

Plz, ignore this one. I checked in latest version and it doesn't happen 
anymore. Sorry

Original comment by [email protected] on 27 Jul 2015 at 10:11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant