Fix: Dereference of null pointer in FMenu
This commit is contained in:
parent
4deede746f
commit
485b8e25aa
|
@ -612,12 +612,18 @@ void FMenu::draw()
|
||||||
|
|
||||||
if ( (flags & fc::shadow) != 0 )
|
if ( (flags & fc::shadow) != 0 )
|
||||||
{
|
{
|
||||||
|
term_area* area = 0;
|
||||||
|
FWindow* area_widget = getWindowWidget(this);
|
||||||
drawMenuShadow();
|
drawMenuShadow();
|
||||||
term_area* area = getWindowWidget(this)->getVWin();
|
|
||||||
|
if ( area_widget )
|
||||||
|
{
|
||||||
|
area = area_widget->getVWin();
|
||||||
|
|
||||||
if ( area )
|
if ( area )
|
||||||
putArea (xpos+xmin-1, ypos+ymin-1, area);
|
putArea (xpos+xmin-1, ypos+ymin-1, area);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
updateVTerm(true);
|
updateVTerm(true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue