IsStandard needs to check m_type, not m_format
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38737 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -53,7 +53,8 @@ public:
|
|||||||
void SetType( wxDataFormatId type );
|
void SetType( wxDataFormatId type );
|
||||||
|
|
||||||
// returns true if the format is one of those defined in wxDataFormatId
|
// returns true if the format is one of those defined in wxDataFormatId
|
||||||
bool IsStandard() const { return m_format > 0 && m_format < wxDF_PRIVATE; }
|
bool IsStandard() const { return m_type > 0 && m_type < wxDF_PRIVATE; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wxDataFormatId m_type;
|
wxDataFormatId m_type;
|
||||||
NativeFormat m_format;
|
NativeFormat m_format;
|
||||||
|
Reference in New Issue
Block a user