probably better to return 1.0 in case of failed parameter checks

svn path=/trunk/; revision=23157
This commit is contained in:
Sven Neumann 2007-08-08 19:31:00 +00:00
parent 4cba8a2364
commit 9804399087
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ gimp_number_pair_entry_get_ratio (GimpNumberPairEntry *entry)
{
GimpNumberPairEntryPrivate *priv;
g_return_val_if_fail (GIMP_IS_NUMBER_PAIR_ENTRY (entry), 0.0);
g_return_val_if_fail (GIMP_IS_NUMBER_PAIR_ENTRY (entry), 1.0);
priv = GIMP_NUMBER_PAIR_ENTRY_GET_PRIVATE (entry);