From: Eduardo DAVILA Date: Sat, 14 Jan 2017 10:34:47 +0000 (+0100) Subject: #3054 BBTK Bug New Normal - package wx - combo box. crash with empty input X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=a9f6025fde4186a24c347b471a62965da56957a8;p=bbtk.git #3054 BBTK Bug New Normal - package wx - combo box. crash with empty input --- diff --git a/packages/wx/src/bbwxComboBox.cxx b/packages/wx/src/bbwxComboBox.cxx index 3684725..27e69d0 100644 --- a/packages/wx/src/bbwxComboBox.cxx +++ b/packages/wx/src/bbwxComboBox.cxx @@ -163,21 +163,12 @@ BBTK_BLACK_BOX_IMPLEMENTATION(ComboBox,bbtk::WxBlackBox); //===== void ComboBox::Process() { - -printf("EED ComboBox::Process start\n"); - int iSelection = bbGetInputSelection(); -printf("EED ComboBox::Process 0\n"); if (bbGetInputSelection() >= bbGetInputIn().size()) { iSelection=bbGetInputIn().size()-1; } -printf("EED ComboBox::Process 1\n"); ComboBoxWidget *w = (ComboBoxWidget*)bbGetOutputWidget(); -printf("EED ComboBox::Process 2\n"); w->FillItems( iSelection, bbGetInputIn() ); -printf("EED ComboBox::Process 3\n"); bbSetInputSelection( iSelection ); -printf("EED ComboBox::Process 4\n"); bbSetOutputOut( iSelection ); -printf("EED ComboBox::Process 5\n"); int size = bbGetInputIn().size(); if ( (iSelection>0) && ( (size-1)<=iSelection) ) @@ -186,9 +177,6 @@ printf("EED ComboBox::Process 5\n"); } // bbSignalOutputModification("Out"); // bbSignalOutputModification("OutString"); - -printf("EED ComboBox::Process end\n"); - } //=====