From 44cea5b742db372c4dafcc3f5d0c1ca0d341779a Mon Sep 17 00:00:00 2001 From: caballero Date: Wed, 10 Jun 2009 11:49:27 +0000 Subject: [PATCH] Modified due to problems in linux. --- src2/creaImageIOGimmick.cpp | 6 +++++- src2/creaImageIOSQLiteTreeHandler.cpp | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) 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