X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkUtilities.h;h=0a184b756c39a1c1028717c8d33de88829df9662;hb=40b39757a6f9d5056bc08a59081ed19d0406837f;hp=2e771a94baca939286ac7941fb263774b738e661;hpb=aeafe748c859675cf481bd9e5e5a5afa84a3fa52;p=bbtk.git diff --git a/kernel/src/bbtkUtilities.h b/kernel/src/bbtkUtilities.h index 2e771a9..0a184b7 100644 --- a/kernel/src/bbtkUtilities.h +++ b/kernel/src/bbtkUtilities.h @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkUtilities.h,v $ Language: C++ - Date: $Date: 2008/01/28 09:12:49 $ - Version: $Revision: 1.4 $ + Date: $Date: 2008/01/28 15:08:53 $ + Version: $Revision: 1.5 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See doc/license.txt or @@ -286,7 +286,14 @@ namespace bbtk if (c != '/' && c != '\\') libname += ConfigurationFile::GetInstance().Get_file_separator (); libname += pkgname; - libname += ".bbs"; + int l = libname.size(); + if (l>4) + { + if (libname.substr(l-4, 4) != ".bbs") + { + libname = libname + ".bbs"; + } +} return libname; }