From: jean-pierre roux Date: Fri, 24 Oct 2008 12:15:27 +0000 (+0000) Subject: Try to track bug X-Git-Tag: v0.9.0~1 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=7895f17388565956143d8992222a7814d7d1513f;p=bbtk.git Try to track bug --- diff --git a/packages/wxvtk/src/bbwxvtkViewer2D.cxx b/packages/wxvtk/src/bbwxvtkViewer2D.cxx index f39434e..465b831 100644 --- a/packages/wxvtk/src/bbwxvtkViewer2D.cxx +++ b/packages/wxvtk/src/bbwxvtkViewer2D.cxx @@ -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 "<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!"<