Index: mitkPropertyList.cpp =================================================================== --- mitkPropertyList.cpp (revision 25989) +++ mitkPropertyList.cpp (working copy) @@ -273,19 +273,43 @@ bool mitk::PropertyList::GetBoolProperty(const char* propertyKey, bool& boolValue) const { - return GetPropertyValue(propertyKey, boolValue); + BoolProperty *gp = dynamic_cast( GetProperty(propertyKey) ); + if ( gp != NULL ) + { + boolValue = gp->GetValue(); + return true; + } + return false; + // Templated Method does not work on Macs + //return GetPropertyValue(propertyKey, boolValue); } bool mitk::PropertyList::GetIntProperty(const char* propertyKey, int &intValue) const { - return GetPropertyValue(propertyKey, intValue); + IntProperty *gp = dynamic_cast( GetProperty(propertyKey) ); + if ( gp != NULL ) + { + intValue = gp->GetValue(); + return true; + } + return false; + // Templated Method does not work on Macs + //return GetPropertyValue(propertyKey, intValue); } bool mitk::PropertyList::GetFloatProperty(const char* propertyKey, float &floatValue) const { - return GetPropertyValue(propertyKey, floatValue); + FloatProperty *gp = dynamic_cast( GetProperty(propertyKey) ); + if ( gp != NULL ) + { + floatValue = gp->GetValue(); + return true; + } + return false; + // Templated Method does not work on Macs + //return GetPropertyValue(propertyKey, floatValue); }