aboutsummaryrefslogtreecommitdiff
path: root/fiv-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'fiv-view.c')
-rw-r--r--fiv-view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fiv-view.c b/fiv-view.c
index 9f6492a..f248ddc 100644
--- a/fiv-view.c
+++ b/fiv-view.c
@@ -417,7 +417,7 @@ prescale_page(FivView *self)
// If it fails, the previous frame pointer may become invalid.
g_clear_pointer(&self->page_scaled, fiv_io_image_unref);
self->frame = self->page_scaled = closure->render(closure,
- fiv_io_cmm_get_default(),
+ self->enable_cms ? fiv_io_cmm_get_default() : NULL,
self->enable_cms ? self->screen_cms_profile : NULL, self->scale);
if (!self->page_scaled)
self->frame = self->page;