* BUG: Don't crash if Paint.End() is called whereas the paint device has 
  been destroyed.


git-svn-id: svn://localhost/gambas/trunk@5483 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2013-01-01 14:40:39 +00:00
parent 6b91e27a00
commit 05fac7e267

View file

@ -434,7 +434,7 @@ static void End(GB_PAINT *d)
if (GB.Is(device, CLASS_DrawingArea))
{
gDrawingArea *wid = (gDrawingArea *)((CWIDGET *)device)->widget;
if (wid->cached())
if (wid && wid->cached())
wid->setCache();
}
else if (GB.Is(device, CLASS_SvgImage))