mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 23:42:32 +00:00
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:
parent
29238498b6
commit
8c9ca0e7a9
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user