summaryrefslogtreecommitdiffstats
path: root/src/ufo-read-task.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ufo-read-task.c')
-rw-r--r--src/ufo-read-task.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ufo-read-task.c b/src/ufo-read-task.c
index 17290ae..1587031 100644
--- a/src/ufo-read-task.c
+++ b/src/ufo-read-task.c
@@ -346,8 +346,9 @@ ufo_read_task_get_requisition (UfoTask *task,
}
}
- /* update height for reduced vertical ROI */
- requisition->dims[1] = priv->roi_height / priv->roi_step;
+ /* update height for reduced vertical ROI and allow things like roi_height=1
+ * and roi_step=20 */
+ requisition->dims[1] = (priv->roi_height - 1) / priv->roi_step + 1;
}
static guint