Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,10 @@ changes (where available).

- Fixed a crash on using tag floating window after editing metadata.

- Fixed rotate and perspective sometimes not applying its automatic
crop when the rotation was changed (e.g. with a shortcut) before the
module had been enabled, leaving empty corners in the image.

## Lua

### API Version
Expand Down
11 changes: 11 additions & 0 deletions src/iop/ashift.c
Original file line number Diff line number Diff line change
Expand Up @@ -5561,6 +5561,17 @@ static void _event_process_after_preview_callback(gpointer instance, dt_iop_modu
switch(jobcode)
{
case ASHIFT_JOBCODE_DO_CROP:
// the signal can come from a preview run that started before the
// module was enabled and so never filled g->buf; do_crop() would
// return without cropping, so keep the request for the next run
dt_iop_gui_enter_critical_section(self);
const gboolean buf_empty = g->buf_width == 0 || g->buf_height == 0;
dt_iop_gui_leave_critical_section(self);
if(buf_empty)
{
g->jobcode = ASHIFT_JOBCODE_DO_CROP;
break;
}
do_crop(self, p);
_commit_crop_box(p, g);
// save all that
Expand Down
Loading