Commit c7d3286d authored by Álvaro Peña's avatar Álvaro Peña

photo: fix return value as a guint in case the given object isn't a GFBGraphPhoto

parent bc6b9531
......@@ -480,7 +480,7 @@ gfbgraph_photo_get_default_source_uri (GFBGraphPhoto *photo)
guint
gfbgraph_photo_get_default_width (GFBGraphPhoto *photo)
{
g_return_val_if_fail (GFBGRAPH_IS_PHOTO (photo), -1);
g_return_val_if_fail (GFBGRAPH_IS_PHOTO (photo), 0);
return photo->priv->width;
}
......@@ -494,7 +494,7 @@ gfbgraph_photo_get_default_width (GFBGraphPhoto *photo)
guint
gfbgraph_photo_get_default_height (GFBGraphPhoto *photo)
{
g_return_val_if_fail (GFBGRAPH_IS_PHOTO (photo), -1);
g_return_val_if_fail (GFBGRAPH_IS_PHOTO (photo), 0);
return photo->priv->height;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment