Add patch for issue4265

This commit is contained in:
Sergi Almacellas Abellana 2014-11-06 16:04:25 +01:00
parent e13e47f8f5
commit 3c6f4bc804
2 changed files with 22 additions and 0 deletions

21
issue13631002_1.diff Normal file
View file

@ -0,0 +1,21 @@
Index: tryton/tryton/common/common.py
===================================================================
--- a/tryton/tryton/common/common.py
+++ b/tryton/tryton/common/common.py
@@ -1577,8 +1577,10 @@
def data2pixbuf(data):
- try:
- pixbuf = _data2pixbuf(data)
- except glib.GError:
- pixbuf = NO_IMG_PIXBUF
+ pixbuf = NO_IMG_PIXBUF
+ if data:
+ try:
+ pixbuf = _data2pixbuf(data)
+ except glib.GError:
+ pass
return pixbuf

1
series
View file

@ -15,3 +15,4 @@ issue10391004_1.diff
issue8481003_1.diff
nan_tic_sao.diff
issue9801002_40001.diff
issue13631002_1.diff