Make sure there actually is a web view when returning the level

This commit is contained in:
Christian Dywan 2009-03-05 23:09:22 +01:00
parent 1fb5222a3f
commit 7c10d2078a

View file

@ -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;
}
/**