Make sure there actually is a web view when returning the level
This commit is contained in:
parent
1fb5222a3f
commit
7c10d2078a
1 changed files with 3 additions and 1 deletions
|
@ -2248,7 +2248,9 @@ midori_view_get_zoom_level (MidoriView* view)
|
|||
{
|
||||
g_return_val_if_fail (MIDORI_IS_VIEW (view), 1.0f);
|
||||
|
||||
if (view->web_view != NULL)
|
||||
return webkit_web_view_get_zoom_level (WEBKIT_WEB_VIEW (view->web_view));
|
||||
return 1.0f;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue