From 8c9ca0e7a90bc9ab9dc7f5fbaa2951f7ea1357ca Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Fri, 5 May 2023 14:07:09 +0200 Subject: [PATCH] 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 --- repos/os/src/server/nitpicker/view.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repos/os/src/server/nitpicker/view.cc b/repos/os/src/server/nitpicker/view.cc index 82285a6d28..23cb222852 100644 --- a/repos/os/src/server/nitpicker/view.cc +++ b/repos/os/src/server/nitpicker/view.cc @@ -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();