Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.0 - Beta
-
Fix Version/s: 4.0
-
Component/s: None
-
Labels:None
-
Environment:Viewer RI
Description
The viewer RI allows for users to select Link annotations on a page and delete them with either the 'delete' key or crt-d. The delete state is stored in the memento and can be undone or redone using the edit menu commands. There is a bound issue with the annotation is restored after a delete.
Test Case
- move an Link annotation to another location.
- delete the annotation
- now execute the undo command twice.
result after undo
- annotation will be painted at it's original location. But the annotation component will be stock in the location of the the original delete.
Test Case
- move an Link annotation to another location.
- delete the annotation
- now execute the undo command twice.
result after undo
- annotation will be painted at it's original location. But the annotation component will be stock in the location of the the original delete.
I spent quit a bit of time looking into this issue yesterday. The component bounds do get updated as expected but the location is not updated correctly. My guess is that I'm not correctly adding the component back to the panel in a swing friendly manner. Hopefully get this fixed shortly.