else
thePrs->SetScalarField(myPrs->GetScalarMeshName().c_str(),
getCurrentScalarFieldName().latin1(),
- myTimeStampsCombo->currentItem() + 1,
+ // PAL12928 myTimeStampsCombo->currentItem() + 1,
+ myTimeStampID[ myTimeStampsCombo->currentItem() ],
myPrs->GetScalarEntity());
if (theUpdateScalars) SetScalarField( false );
}
void VisuGUI_ScalarMapOnDeformedShapeDlg::SetScalarField( const bool save_scalar_pane ){
- SetScalarField( myTimeStampsCombo->currentItem()+1, "", save_scalar_pane );
+ // PAL12928 SetScalarField( myTimeStampsCombo->currentItem()+1, "", save_scalar_pane );
+ SetScalarField( myTimeStampID[ myTimeStampsCombo->currentItem() ], "", save_scalar_pane );
}
void VisuGUI_ScalarMapOnDeformedShapeDlg::SetScalarField(int theIter,QString theFieldName, const bool save_scalar_pane ){
QString aFieldName = aIterField->first.first;
if(theFieldName != aFieldName) continue;
myTimeStampsCombo->clear();
+ myTimeStampID.clear();
+ myTimeStampID.reserve( (aIterField->second).size() );
TTL::const_iterator aTimeIter = (aIterField->second).begin();
- for(;aTimeIter != (aIterField->second).end(); aTimeIter++)
+ for(;aTimeIter != (aIterField->second).end(); aTimeIter++) {
myTimeStampsCombo->insertItem(QString("%1").arg(aTimeIter->second));
+ myTimeStampID.push_back(aTimeIter->first);
+ }
return;
}
}