X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOSQLiteTreeHandler.cpp;h=847160617de0cd275683427a047d9afcd8389a00;hb=0bc29481ba22ca1011e6d655752a0dc69ea7dd55;hp=6af107d7c27fc023b17de9f0403edf5c2140754b;hpb=42f7c93a6f8fc2beeb8709be1b3616ec40f4699e;p=creaImageIO.git diff --git a/src2/creaImageIOSQLiteTreeHandler.cpp b/src2/creaImageIOSQLiteTreeHandler.cpp index 6af107d..8471606 100644 --- a/src2/creaImageIOSQLiteTreeHandler.cpp +++ b/src2/creaImageIOSQLiteTreeHandler.cpp @@ -149,7 +149,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 "<