X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreaImageIOWxGimmick.cpp;h=57cf94f1f0ac707a8e0a3cce968615840b61a472;hb=91c74cbf343af3e44a6b4a242d285d1cebc6d679;hp=1acf88872f4d2abb91e1cb04ddbf861526247ef0;hpb=0f77ffb489a57c12a23d1afa592d07a37c41d8b5;p=creaImageIO.git diff --git a/src/creaImageIOWxGimmick.cpp b/src/creaImageIOWxGimmick.cpp index 1acf888..57cf94f 100644 --- a/src/creaImageIOWxGimmick.cpp +++ b/src/creaImageIOWxGimmick.cpp @@ -859,6 +859,9 @@ namespace creaImageIO boost::filesystem::change_extension(filepath,GetDatabaseExtension()); if ( boost::filesystem::exists(filepath) ) { + boost::filesystem::remove(filepath); + /* + LG : works on Linux but not Windows : if ( ! boost::filesystem::remove(filepath) ) { wxMessageBox(_T("Could not overwrite ") @@ -866,8 +869,10 @@ namespace creaImageIO _T("Error"), wxOK,this); return; + } + */ } }