Skip to content

Commit

Permalink
Update core/cog-view.c
Browse files Browse the repository at this point in the history
Co-authored-by: Adrian Perez <[email protected]>
  • Loading branch information
psaavedra and aperezdc authored Nov 23, 2023
1 parent cec52df commit 1c86168
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/cog-view.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,9 +473,7 @@ cog_view_is_visible(CogView *self)
g_return_val_if_fail(COG_IS_VIEW(self), false);

g_autoptr(CogViewport) viewport = cog_view_get_viewport(self);
g_return_val_if_fail(viewport != NULL, false);

return self == cog_viewport_get_visible_view(viewport);
return viewport && self == cog_viewport_get_visible_view(viewport);
}

/**
Expand Down

0 comments on commit 1c86168

Please sign in to comment.