X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvToolMIP.cxx;h=f23bfd484cd840a1543b9131968c0e0b5eb04355;hb=5178b9c98f56e67d2b60ba85b9ff700d28d0051c;hp=cfa338f63028d65ad605eff8659095ee04b61b69;hpb=b273d00111d0c8474019d44282682fbb51a80104;p=clitk.git diff --git a/vv/vvToolMIP.cxx b/vv/vvToolMIP.cxx index cfa338f..f23bfd4 100644 --- a/vv/vvToolMIP.cxx +++ b/vv/vvToolMIP.cxx @@ -3,8 +3,8 @@ Program: vv Module: $RCSfile: vvToolMIP.cxx,v $ Language: C++ - Date: $Date: 2011/03/22 15:50:39 $ - Version: $Revision: 1.2 $ + Date: $Date: 2011/04/15 08:29:21 $ + Version: $Revision: 1.3 $ Author : Bharath Navalpakkam (Bharath.Navalpakkam@creatis.insa-lyon.fr) Copyright (C) 2010 @@ -61,7 +61,6 @@ vvToolMIP::vvToolMIP(vvMainWindowBase * parent, Qt::WindowFlags f) //------------------------------------------------------------------------------ vvToolMIP::~vvToolMIP() { - delete mFilter; } //------------------------------------------------------------------------------ void vvToolMIP::Initialize() @@ -83,7 +82,7 @@ void vvToolMIP::apply() cmdline_parser_clitkMIP_init(&args_info); args_info.dimension_arg=this->dimensionSpinBox->value(); args_info.dimension_given=true; - clitk::MIPGenericFilter* filter= dynamic_cast(mFilter); + clitk::MIPGenericFilter* filter= dynamic_cast(mFilter.GetPointer()); filter->SetArgsInfo(args_info); filter->SetInputVVImage(mCurrentImage); filter->Update();