X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b5b3c8a0cf8a7e1ad4d5a74de2c2aca1378f7078..b3cec67186d678d2c3985923bdb8c787455cf369:/src/generic/odcombo.cpp diff --git a/src/generic/odcombo.cpp b/src/generic/odcombo.cpp index 9759b33a33..1d912e19c0 100644 --- a/src/generic/odcombo.cpp +++ b/src/generic/odcombo.cpp @@ -504,7 +504,7 @@ int wxVListBoxComboPopup::Append(const wxString& item) for ( i=0; iSetString(n,s); } @@ -999,7 +999,7 @@ void wxOwnerDrawnComboBox::Select(int n) { EnsurePopupControl(); - wxCHECK_RET( (n == wxNOT_FOUND) || IsValid(n), _T("invalid index in wxOwnerDrawnComboBox::Select") ); + wxCHECK_RET( (n == wxNOT_FOUND) || IsValid(n), wxT("invalid index in wxOwnerDrawnComboBox::Select") ); GetVListBoxComboPopup()->SetSelection(n); @@ -1039,7 +1039,7 @@ int wxOwnerDrawnComboBox::DoInsertItems(const wxArrayStringsAdapter& items, for ( unsigned int i = 0; i < count; ++i ) { - int n = GetVListBoxComboPopup()->Append(items[i]); + n = GetVListBoxComboPopup()->Append(items[i]); AssignNewItemClientData(n, clientData, i, type); } @@ -1085,7 +1085,7 @@ void wxOwnerDrawnComboBox::OnDrawItem( wxDC& dc, if ( flags & wxODCB_PAINTING_CONTROL ) { dc.DrawText( GetValue(), - rect.x + GetTextIndent(), + rect.x + GetMargins().x, (rect.height-dc.GetCharHeight())/2 + rect.y ); } else