prevent GTK-Warning

This commit is contained in:
Yann Leboulanger 2005-12-29 13:13:13 +00:00
parent 1e9d015bb7
commit 928e2b2994
1 changed files with 2 additions and 0 deletions

View File

@ -95,6 +95,8 @@ class CellRendererImage(gtk.GenericCellRenderer):
pix = self.image.get_pixbuf()
else:
return
if draw_rect.x < 1:
return
window.draw_pixbuf(widget.style.black_gc, pix,
draw_rect.x - pix_rect.x,
draw_rect.y - pix_rect.y,