X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FimageUndoRedo%2FimageInfoUR.cxx;h=18c255eeae6ce381f34d7cc203bf4fe96792cf06;hb=d0338585b83d4b0422ad465dedd0f885b3441600;hp=b45e21d920915b8e27a58880380875b090ab85c2;hpb=8185e042f64574ca43bba733ec2158a2aa994220;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/imageUndoRedo/imageInfoUR.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/imageUndoRedo/imageInfoUR.cxx index b45e21d..18c255e 100755 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/imageUndoRedo/imageInfoUR.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/imageUndoRedo/imageInfoUR.cxx @@ -13,7 +13,6 @@ ImageInfoUR::ImageInfoUR() { } ImageInfoUR::~ImageInfoUR() { - this->m_Image->Delete(); } void ImageInfoUR::SetImageName(const std::string &imgName) { @@ -42,7 +41,7 @@ void ImageInfoUR::RemoveImageFromMemory(const std::string& gPath) { if (!this->m_OnDisk) { this->SaveImageAsMHD(gPath); } - this->m_Image->Delete(); + this->m_Image = NULL; this->SetStatus(false); } void ImageInfoUR::LoadImageMHDToMemory(const std::string& gPath) { @@ -62,9 +61,7 @@ void ImageInfoUR::SaveImageAsMHD(const std::string& gPath) { w->SetCompression(false); w->SetFileDimensionality(this->m_Image->GetDataDimension()); w->SetFileName(filename.c_str()); - w->Update(); w->Write(); - w->Delete(); } void ImageInfoUR::RemoveImageFromDisk(const std::string& gPath)