]> Creatis software - bbtk.git/commitdiff
Bug fix in Utilities::SplitAroundFirstDot
authorguigues <guigues>
Wed, 23 Jan 2008 07:51:51 +0000 (07:51 +0000)
committerguigues <guigues>
Wed, 23 Jan 2008 07:51:51 +0000 (07:51 +0000)
kernel/src/bbtkInterpreter.cxx
kernel/src/bbtkUtilities.h
packages/wx/bbs/appli/testSplit.bbs

index ef03a40f986572635709764b305897bbfb162af2..76d87e3bf65f53ae629bd69c467006baae3aac01 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkInterpreter.cxx,v $ $
   Language:  C++
-  Date:      $Date: 2008/01/22 16:55:04 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2008/01/23 07:51:51 $
+  Version:   $Revision: 1.3 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -397,8 +397,8 @@ void Interpreter::InterpretLine( const std::string& line, bool &insideComment )
     InterpretCommand(words,command);
 
     bbtkDebugMessage("Interpreter",9,
-                     "Command '"<<command.keyword
-                      <<" code="<<command.code<<std::endl); 
+                     "Command='"<<command.keyword
+                      <<"' code="<<command.code<<std::endl); 
     int level=0;
     std::string left,right,left2,right2;
     std::string filename;
index d9c3193a0a07eac9f7c8cdcefb62fed751a76e84..51f85193ff0b9ec5554611e86cb3ff44d0ae9662 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkUtilities.h,v $
   Language:  C++
-  Date:      $Date: 2008/01/22 16:55:04 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2008/01/23 07:51:51 $
+  Version:   $Revision: 1.3 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See doc/license.txt or
@@ -285,14 +285,12 @@ namespace bbtk
         right = in.substr(pos+1,in.size());
 
       }
-      /*
       else
       {
-        bbtkError(in<<" : expected 'a.b' format but no dot found");
+       // bbtkError(in<<" : expected 'a.b' format but no dot found");
+       left ="";
+       right = "";
       }
-      */
-      left ="";
-      right = "";
     }
 
     static inline std::string get_file_name(const std::string& s) 
index b59e295a50a41b45060dd9b4faedda90a1e25428..f585904ff423d28b871858dece01290d782dd2c3 100644 (file)
@@ -2,6 +2,7 @@ description "Simple test of wx::Split widget"
 author "laurent.guigues@creatis.insa-lyon.fr"
 
 load wx
+
 new Slider slider1
 new Slider slider2
 new Split main