We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdac526 commit 78ddb59Copy full SHA for 78ddb59
src/iop/clipping.c
@@ -1266,8 +1266,11 @@ static float _ratio_get_aspect(dt_iop_module_t *self)
1266
{
1267
dt_iop_clipping_params_t *p = (dt_iop_clipping_params_t *)self->params;
1268
1269
- int iwd, iht;
1270
- dt_dev_get_processed_size(darktable.develop, &iwd, &iht);
+ // we want to know the size of the actual buffer
+ dt_dev_pixelpipe_iop_t *piece = dt_dev_distort_get_iop_pipe(self->dev, self->dev->preview_pipe, self);
1271
+ if(!piece) return 0;
1272
+
1273
+ const int iwd = piece->buf_in.width, iht = piece->buf_in.height;
1274
1275
// if we do not have yet computed the aspect ratio, let's do it now
1276
if(p->ratio_d == -2 && p->ratio_n == -2)
0 commit comments