]> Creatis software - bbtk.git/commitdiff
Try to track bug
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Fri, 24 Oct 2008 12:15:27 +0000 (12:15 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Fri, 24 Oct 2008 12:15:27 +0000 (12:15 +0000)
packages/wxvtk/src/bbwxvtkViewer2D.cxx

index f39434e720f8ec1aeabe74e0786c96494c1c7e33..465b83104bb9a5f9d32e472cb00ffe3aca99b537 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxvtkViewer2D.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/10/14 11:47:30 $
-  Version:   $Revision: 1.17 $
+  Date:      $Date: 2008/10/24 12:15:27 $
+  Version:   $Revision: 1.18 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -175,9 +175,10 @@ namespace bbwxvtk
     //  std::cout << "Sh = "<< mBox->bbIsShown() << std::endl;
     
     int orientation = mBox->bbGetInputOrientation();
-    if (orientation<0 || orientation>2)
+    if (orientation<0 || orientation>2) {
+       bbtkMessage("Output", 2, "Viewer2D : Orientation was not 0< <2 "<<std::endl);
        orientation=2; // Why not?      
-
+    }
     // mBox->bbIsShown() is necessary to be sure that the wxWindow is already 
     // created and displayed. 
     // Else when slice != 0 we get an X Window System error with wxGTK
@@ -210,6 +211,7 @@ namespace bbwxvtk
                 break;
                
               default:
+               bbtkMessage("Output", 2, "Viewer2D : Orientation was not 0< <2 (shouldn't arrive here!"<<std::endl);
                z = ext[5]; // Why not?
            }