Skip to content

Duplicate label on OMRaster when selected and rotated #14

Open

Description

@GoogleCodeExporter
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:

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions