Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix crash
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15160 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Feb 12, 2011
1 parent b9aaa49 commit fb92258
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/core/qgsprojectproperty.cpp
Expand Up @@ -281,18 +281,15 @@ QgsPropertyKey::~QgsPropertyKey()

QVariant QgsPropertyKey::value() const
{
QgsProperty * foundQgsProperty;
QgsProperty *foundQgsProperty = mProperties.value( name() );

if ( 0 == ( foundQgsProperty = mProperties.value( name() ) ) )
{ // recurse down to next key
return foundQgsProperty->value();
}
else
if ( !foundQgsProperty )
{
QgsDebugMsg( "key has null child" );

return QVariant(); // just return an QVariant::Invalid
}

return foundQgsProperty->value();
} // QVariant QgsPropertyKey::value()


Expand Down

0 comments on commit fb92258

Please sign in to comment.