abort dialog rendering if surface is null (fixes #1078)

This commit is contained in:
thrust26 2025-05-21 22:14:00 +02:00
parent 8421af8931
commit 3d3f223a17
1 changed files with 4 additions and 0 deletions

View File

@ -339,6 +339,10 @@ void Dialog::render()
//cerr << " render " << typeid(*this).name() << '\n';
#endif
if(_surface == NULL) {
return; // fixes #1078
}
// Update dialog surface; also render any extra surfaces
// Extra surfaces must be rendered afterwards, so they are drawn on top
if(_surface->render())