Index: src/ch/CfgProperties.h =================================================================== diff -u -N -r1d7d79169d480a02e335b8b0a4919f9c78d58325 -rca046f75806db6693a4b2dc6ddb255f76d0bbc3f --- src/ch/CfgProperties.h (.../CfgProperties.h) (revision 1d7d79169d480a02e335b8b0a4919f9c78d58325) +++ src/ch/CfgProperties.h (.../CfgProperties.h) (revision ca046f75806db6693a4b2dc6ddb255f76d0bbc3f) @@ -253,14 +253,15 @@ typename PropData::value_type GetPropValue(const TConfig& rConfig) { typename PropData::value_type tValue; - rConfig.GetValue(CString(PropData::GetPropertyNamePrefix()) + PropData::GetPropertyName(), tValue, PropData::GetDefaultValue()); + if(!rConfig.GetValue(CString(PropData::GetPropertyNamePrefix()) + PropData::GetPropertyName(), tValue)) + tValue = PropData::GetDefaultValue(); return tValue; } template bool GetPropValue(const TConfig& rConfig, typename PropData::value_type& rValue) { - return rConfig.GetValue(CString(PropData::GetPropertyNamePrefix()) + PropData::GetPropertyName(), rValue, PropData::GetDefaultValue()); + return rConfig.GetValue(CString(PropData::GetPropertyNamePrefix()) + PropData::GetPropertyName(), rValue); } template