void marImageData::removeImageData(int index)
{
- if(index < _imagedataLST.size()){
+ if(index < _imagedataLST.size())
+ {
/*vtkImageData* img = _imagedataLST[index];
if(img->GetReferenceCount()>1){
img->SetReferenceCount(img->GetReferenceCount()-1);
//img->Delete();
}*/
- for(int i = index; i < _imagedataLST.size()-1; i++){
+ for(int i = index; i < _imagedataLST.size()-1; i++)
+ {
_imagedataLST[i] = _imagedataLST[i+1];
- }
+ }// for
_imagedataLST.pop_back();
//delete img;
- }
+ } // if
}
// ----------------------------------------------------------------------------------------------
int marImageData::GetXOriginal(int value)