std::strstream aStream;
const VISU::TValField& aValField = myScalarField->myValField;
const VISU::PValForTime aValForTime = aValField.find(myScalarIteration)->second;
- aStream<<theTitle<<" "<<VISU_Convertor::GenerateName(aValForTime->myTime)<<std::ends;
- std::string aScalarBarTitle = aStream.str();
- if(myTitle != theTitle || myScalarBarTitle != aScalarBarTitle){
- myScalarBarTitle = aScalarBarTitle;
- myTitle = theTitle;
+ if(aValForTime){
+ aStream<<theTitle<<" "<<VISU_Convertor::GenerateName(aValForTime->myTime)<<std::ends;
+ std::string aScalarBarTitle = aStream.str();
+ if(myTitle != theTitle || myScalarBarTitle != aScalarBarTitle){
+ myScalarBarTitle = aScalarBarTitle;
+ myTitle = theTitle;
+ }
}
}