From c6c8ddc7823976f5751342ea5eb38c21465bd124 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Thu, 21 Mar 2019 08:51:08 +0100 Subject: Prevented a floating point exception while zooming. --- src/glibext/gbufferview.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/glibext/gbufferview.c b/src/glibext/gbufferview.c index db8da28..cfe215d 100644 --- a/src/glibext/gbufferview.c +++ b/src/glibext/gbufferview.c @@ -1121,6 +1121,8 @@ void g_buffer_view_draw(const GBufferView *view, cairo_t *cr, gint virt_y, const line_height = g_buffer_cache_get_line_height(view->cache) * scale; + line_height = MAX(line_height, 1); + /* Indice et point de départ */ first = view->first; -- cgit v0.11.2-87-g4458