]> Creatis software - bbtk.git/blobdiff - packages/wx/src/bbwxSplit.cxx
Split Orientation
[bbtk.git] / packages / wx / src / bbwxSplit.cxx
index 0b5a71f41ae4158db41f0c49bac2d856a3572fbe..38627613a9de74d2862bdf1427c73455649cc6be 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbwxSplit.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/02/14 20:55:52 $
-  Version:   $Revision: 1.7 $
+  Date:      $Date: 2008/02/15 10:23:59 $
+  Version:   $Revision: 1.8 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -36,7 +36,7 @@ namespace bbwx
   void Split::bbUserConstructor()
   {
        bbSetInputWinTitle("Split");
-    bbSetInputOrientation("HORIZONTAL");
+    bbSetInputOrientation("VERTICAL");
     bbSetInputProportion(50);
     bbSetInputWidget1(NULL);
     bbSetInputWidget2(NULL);
@@ -67,7 +67,7 @@ namespace bbwx
        if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"0|H|HORIZONTAL")==true)  { orientation=0; }
        if (bbtk::Utilities::loosematch(bbGetInputOrientation(),"1|V|VERTICAL")==true)    { orientation=1; }
 
-       if (orientation==0) { w->SplitHorizontally( w1, w2, 100); }
+       if (orientation==1) { w->SplitHorizontally( w1, w2, 100); }
        else                { w->SplitVertically( w1, w2, 100);   }
 
     bbSetOutputWidget( w );