nitpicker: fix gcc build error

An early version of nitpicker used a pointer as 'owner' with the null
pointer representing nitpicker's built-in views, which are nowadays
represented by 'Main::_global_view_ower'. The null-pointer check is a
left-over from the earlier days.

Fixes #4847
This commit is contained in:
Norman Feske 2023-05-05 14:07:09 +02:00 committed by Christian Helmuth
parent 29238498b6
commit 8c9ca0e7a9

View File

@ -114,7 +114,8 @@ void Nitpicker::View::draw(Canvas_base &canvas, Font const &font, Focus const &f
* If the clipping area shrinked to zero, we do not process drawing
* operations.
*/
if (!canvas.clip().valid() || !&_owner) return;
if (!canvas.clip().valid())
return;
/* allow alpha blending only if the raw client content is enabled */
bool allow_alpha = _owner.content_client();