4lex4 / scantailor-advanced

ScanTailor Advanced is the version that merges the features of the ScanTailor Featured and ScanTailor Enhanced versions, brings new ones and fixes.
GNU General Public License v3.0
1.18k stars 129 forks source link

Batch processing alter orientation of displayed image #55

Open cbfiddle opened 5 years ago

cbfiddle commented 5 years ago

The postUpdateUI method of the fix_orientation OptionsWidget is called on the completion of batch tasks with the (new) image rotation. The image that was processed may or may not be the image that is displayed by the widget. If it is not, then updating the rotation setting for the displayed image is incorrect. The postUpdateUI method needs an ImageId parameter so that the setting is updated only if it applies to the displayed image.