Fix casting variable in wxFlagsProperty::GetLabel
Cast GetLabel parameter to a proper type (unsigned int instead of int).
This commit is contained in:
@@ -618,7 +618,7 @@ public:
|
|||||||
// helpers
|
// helpers
|
||||||
size_t GetItemCount() const { return m_choices.GetCount(); }
|
size_t GetItemCount() const { return m_choices.GetCount(); }
|
||||||
const wxString& GetLabel( size_t ind ) const
|
const wxString& GetLabel( size_t ind ) const
|
||||||
{ return m_choices.GetLabel(static_cast<int>(ind)); }
|
{ return m_choices.GetLabel(static_cast<unsigned int>(ind)); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Used to detect if choices have been changed
|
// Used to detect if choices have been changed
|
||||||
|
Reference in New Issue
Block a user