]> Creatis software - bbtk.git/blobdiff - packages/wx/src/bbwxComboBox.cxx
not center elements in ComboBox
[bbtk.git] / packages / wx / src / bbwxComboBox.cxx
index 26d8e1768f98b6748fff65dbb942fac0b5671665..411d8db04b3d06e309feec6899e6d78cf9b79861 100644 (file)
@@ -155,7 +155,11 @@ void ComboBoxWidget::FillItems( int iSelection, std::vector< std::string > lstIn
 {
        int i,size=lstIn.size();
 
-// Patch to put spaces at the beginin
+
+#if defined(_WIN32)
+       // Patch to put spaces at the beginin
+#else
+       // Patch to put spaces at the beginin
        int strLength=-1;
        // Looking for the longest string
        for (i=0 ;i<size; i++)
@@ -169,9 +173,10 @@ void ComboBoxWidget::FillItems( int iSelection, std::vector< std::string > lstIn
                len2 = strLength - lstIn[i].length();
                for (ii=0;ii<len2;ii++)
                {       
-                       lstIn[i]="  "+lstIn[i];  // 3 space characters
+                       lstIn[i]="  "+lstIn[i];  // spaces characters
                } // for ii
        } // for i
+#endif // defined(_WIN32)
        
        itemcontainer->Clear();
        for (i=0;i<size; i++)