Skip to content

Commit

Permalink
fix crash in slideshow
Browse files Browse the repository at this point in the history
  • Loading branch information
dterrahe authored and TurboGit committed Nov 2, 2023
1 parent 812e0fd commit 55b8539
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/develop/develop.c
Original file line number Diff line number Diff line change
Expand Up @@ -3528,11 +3528,14 @@ void dt_dev_image(const dt_imgid_t imgid,
dt_dev_viewport_t *port = &darktable.develop->full;

if(!zoom_x && !zoom_y)
port = &(dt_dev_viewport_t) { .zoom = DT_ZOOM_FIT,
.width = width,
.height = height,
.ppd = 1.0,
.pipe = pipe };
{
port = &dev.full;
port->zoom = DT_ZOOM_FIT;
port->width = width;
port->height = height;
port->ppd = 1.0;
}

// process the pipe

dt_dev_process_image_job(&dev, port, pipe, -1);
Expand Down

0 comments on commit 55b8539

Please sign in to comment.