From: caballero Date: Wed, 10 Jun 2009 11:49:27 +0000 (+0000) Subject: Modified due to problems in linux. X-Git-Tag: EED.02Oct2009~46 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=44cea5b742db372c4dafcc3f5d0c1ca0d341779a;p=creaImageIO.git Modified due to problems in linux. --- diff --git a/src2/creaImageIOGimmick.cpp b/src2/creaImageIOGimmick.cpp index 0dc9796..413a836 100644 --- a/src2/creaImageIOGimmick.cpp +++ b/src2/creaImageIOGimmick.cpp @@ -55,7 +55,11 @@ namespace creaImageIO std::string dbpath = GetLocalDatabasePath(); // Create or open local database - mLocalDatabase = createDB(i_nameDB, mCurrentDirectory + "\\.gimmick\\localdatabase_Descriptor.txt", dbpath); + std::string dpath= mCurrentDirectory + "/.gimmick/localdatabase_Descriptor.txt"; + boost::algorithm::replace_all( dpath, + INVALID_FILE_SEPARATOR , + VALID_FILE_SEPARATOR); + mLocalDatabase = createDB(i_nameDB, dpath, dbpath); // Add it to the TreeHandlerMap mTreeHandlerMap[i_nameDB] = mLocalDatabase; diff --git a/src2/creaImageIOSQLiteTreeHandler.cpp b/src2/creaImageIOSQLiteTreeHandler.cpp index 596a92a..8471606 100644 --- a/src2/creaImageIOSQLiteTreeHandler.cpp +++ b/src2/creaImageIOSQLiteTreeHandler.cpp @@ -331,9 +331,9 @@ namespace creaImageIO command = "create table LEVELS\n"; command += "( Name text )\n"; UPDATEDB(command); - + int l; // Iterate the Levels - for (int l=0; l