From 6e618136d8d7a109a400b6b21e4e888ed93cbbe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 29 Sep 2018 20:39:04 +0200 Subject: [PATCH] Set correct operator precedence to resize pixbuf issue7748 review64431002 --- tryton/gui/window/view_form/view/list_gtk/widget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/gui/window/view_form/view/list_gtk/widget.py b/tryton/gui/window/view_form/view/list_gtk/widget.py index 9890d2ac26..80bd5c01cf 100644 --- a/tryton/gui/window/view_form/view/list_gtk/widget.py +++ b/tryton/gui/window/view_form/view/list_gtk/widget.py @@ -537,7 +537,7 @@ class Image(GenericText): pixbuf = data2pixbuf(value) width = self.attrs.get('width', -1) height = self.attrs.get('height', -1) - if pixbuf and width != -1 or height != -1: + if pixbuf and (width != -1 or height != -1): pixbuf = common.resize_pixbuf(pixbuf, width, height) cell.set_property('pixbuf', pixbuf)