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 52a0293 commit f15cf34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/cog-view.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,8 @@ cog_view_set_visible(CogView *self)
g_assert(COG_IS_VIEW(self));

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

cog_viewport_set_visible_view(viewport, self);

Expand Down

0 comments on commit f15cf34

Please sign in to comment.