imagej / ImageJ

Public domain software for processing and analyzing scientific images
http://imagej.org
Other
556 stars 221 forks source link

Fix for Scaling images corrupts arrow overlays (Issue #125) #210

Closed justinjconroy closed 1 year ago

justinjconroy commented 1 year ago

The scale method of RoiScaler.java was originally not checking whether Line Roi's were subclass Arrow or not. Thus any rescaled Arrow was being changed to standard lines. This adds a simple instanceof if statement check for Line type Roi's to see if the new rescaled Roi should be declared as a new Line or Arrow subclass. Original problem description: https://github.com/imagej/ImageJ/issues/125

rasband commented 1 year ago

This bug fix is in the ImageJ 1.54e36 daily build. The commit is at https://github.com/imagej/ImageJ/commit/1eda4c8d71f91bbdac04e94f410ed624fc042297.