From: Fredrik Tolf Date: Thu, 26 Mar 2026 03:48:06 +0000 (+0100) Subject: python: Fix zooming bug at transitory allocation sizes. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=99737eb5e823efa8f23285abc5b87961c5af0680;p=automanga.git python: Fix zooming bug at transitory allocation sizes. --- diff --git a/manga/reader.py b/manga/reader.py index 3032c59..5a426ba 100644 --- a/manga/reader.py +++ b/manga/reader.py @@ -255,7 +255,7 @@ class pageview(gtk.Widget): pz, zbuf = self.zoomed if pz != zoom: w, h = self.get_osize() - zbuf = self.pixbuf.scale_simple(round(w * zoom), round(h * zoom), self.interp) + zbuf = self.pixbuf.scale_simple(max(round(w * zoom), 1), max(round(h * zoom), 1), self.interp) self.zoomed = zoom, zbuf return zbuf