[GB.GTK]
* 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:
parent
6b91e27a00
commit
05fac7e267
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue