]> Creatis software - clitk.git/commitdiff
Debug #54
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Wed, 25 Oct 2017 09:15:39 +0000 (11:15 +0200)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Wed, 25 Oct 2017 09:15:39 +0000 (11:15 +0200)
common/clitkCommon.cxx

index 55b9927ebfd173d63652ac72eb4557b7f069af73..96980bbbb6b47f3c7c20106f0ef9dd0e2cabd09d 100644 (file)
@@ -81,7 +81,8 @@ std::vector<std::string> clitk::SplitFilename(const std::string& filename)
   std::vector<std::string> pathComponents;
   itksys::SystemTools::SplitPath(filename.c_str(), pathComponents);
   std::string fileName = pathComponents.back();
-  dirname.push_back(path);
+  if (path != "")
+    dirname.push_back(path);
   dirname.push_back(fileName);
   return( dirname );
 } ////