Commit 144fcf95 authored by David Gobbi's avatar David Gobbi Committed by Code Review
Browse files

Merge topic 'med-image-props-fix' into master

9aadfc9f fix bug in MedicalImageProperties
parents c62849b4 9aadfc9f
......@@ -74,8 +74,11 @@ public:
{
UserDefinedValue key(name);
UserDefinedValues::const_iterator it = UserDefinedValuePool.find( key );
assert( strcmp(it->Name.c_str(), name) == 0 );
return it->Value.c_str();
if( it != UserDefinedValuePool.end() )
{
assert( strcmp(it->Name.c_str(), name) == 0 );
return it->Value.c_str();
}
}
return NULL;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment