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<PropID>::value_type GetPropValue(const TConfig& rConfig) { typename PropData<PropID>::value_type tValue; - rConfig.GetValue(CString(PropData<PropID>::GetPropertyNamePrefix()) + PropData<PropID>::GetPropertyName(), tValue, PropData<PropID>::GetDefaultValue()); + if(!rConfig.GetValue(CString(PropData<PropID>::GetPropertyNamePrefix()) + PropData<PropID>::GetPropertyName(), tValue)) + tValue = PropData<PropID>::GetDefaultValue(); return tValue; } template<ECHProperties PropID> bool GetPropValue(const TConfig& rConfig, typename PropData<PropID>::value_type& rValue) { - return rConfig.GetValue(CString(PropData<PropID>::GetPropertyNamePrefix()) + PropData<PropID>::GetPropertyName(), rValue, PropData<PropID>::GetDefaultValue()); + return rConfig.GetValue(CString(PropData<PropID>::GetPropertyNamePrefix()) + PropData<PropID>::GetPropertyName(), rValue); } template<ECHProperties PropID>