]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkUtilities.h
*** empty log message ***
[bbtk.git] / kernel / src / bbtkUtilities.h
index 2e771a94baca939286ac7941fb263774b738e661..0a184b756c39a1c1028717c8d33de88829df9662 100644 (file)
@@ -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;
   }