X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FBaseObjects%2FParameters.cxx;h=1c6363863830cd14e55b5da9f784ad555cf7c226;hb=cd024359dba23dd50e197abf1ed7d70737deb7fd;hp=d55278661dc18c0c6d1b77ce2b8635607b5c8c49;hpb=aee3cafa7e93f996580777976636ed625dbc43f5;p=cpPlugins.git diff --git a/lib/cpPlugins/BaseObjects/Parameters.cxx b/lib/cpPlugins/BaseObjects/Parameters.cxx index d552786..1c63638 100644 --- a/lib/cpPlugins/BaseObjects/Parameters.cxx +++ b/lib/cpPlugins/BaseObjects/Parameters.cxx @@ -447,11 +447,11 @@ AddToOpenFileNameList( { if( i->second.first == OpenFileNameList ) { - auto pos = name.find_last_of( "/\\" ); + auto pos = v.find_last_of( "/\\" ); if( i->second.second == "" ) - i->second.second = name.substr( 0, pos ); + i->second.second = v.substr( 0, pos ); i->second.second += std::string( "#" ); - i->second.second += name.substr( pos + 1 ); + i->second.second += v.substr( pos + 1 ); this->Modified( ); } // fi @@ -486,11 +486,11 @@ AddToSaveFileNameList( { if( i->second.first == SaveFileNameList ) { - auto pos = name.find_last_of( "/\\" ); + auto pos = v.find_last_of( "/\\" ); if( i->second.second == "" ) - i->second.second = name.substr( 0, pos ); + i->second.second = v.substr( 0, pos ); i->second.second += std::string( "#" ); - i->second.second += name.substr( pos + 1 ); + i->second.second += v.substr( pos + 1 ); this->Modified( ); } // fi