Set correct operator precedence to resize pixbuf
issue7748 review64431002
This commit is contained in:
1 parent
3b576e29d2
commit
6e618136d8
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user