X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOSQLiteTreeHandler.cpp;h=3d3fe70c1639ad2357a75f628ff63462020a2e9f;hb=2df647c186de559388c62bfebba8795b860ee8ae;hp=6af107d7c27fc023b17de9f0403edf5c2140754b;hpb=42f7c93a6f8fc2beeb8709be1b3616ec40f4699e;p=creaImageIO.git diff --git a/src2/creaImageIOSQLiteTreeHandler.cpp b/src2/creaImageIOSQLiteTreeHandler.cpp index 6af107d..3d3fe70 100644 --- a/src2/creaImageIOSQLiteTreeHandler.cpp +++ b/src2/creaImageIOSQLiteTreeHandler.cpp @@ -13,11 +13,6 @@ #include -#include "wx/wx.h" -#include -#include - - //#include #include @@ -149,7 +144,7 @@ namespace creaImageIO if (parent) { int nC = parent->RemoveChildrenFromList(node); - if(nC>0) + if(nC>0 && parent->GetLevel()>0) { std::stringstream out; out <1) + { + std::stringstream out; + std::stringstream results; + out<<"SELECT PARENT_ID FROM "<