prevent GTK-Warning
This commit is contained in:
parent
1e9d015bb7
commit
928e2b2994
|
@ -95,6 +95,8 @@ class CellRendererImage(gtk.GenericCellRenderer):
|
||||||
pix = self.image.get_pixbuf()
|
pix = self.image.get_pixbuf()
|
||||||
else:
|
else:
|
||||||
return
|
return
|
||||||
|
if draw_rect.x < 1:
|
||||||
|
return
|
||||||
window.draw_pixbuf(widget.style.black_gc, pix,
|
window.draw_pixbuf(widget.style.black_gc, pix,
|
||||||
draw_rect.x - pix_rect.x,
|
draw_rect.x - pix_rect.x,
|
||||||
draw_rect.y - pix_rect.y,
|
draw_rect.y - pix_rect.y,
|
||||||
|
|
Loading…
Reference in New Issue