Fixed various NULL reference issues. Also cleaned up wxPGComboBox code overall a bit.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56782 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
extern WXDLLIMPEXP_DATA_PROPGRID(const char) wxPropertyGridNameStr[];
|
||||
#endif
|
||||
|
||||
class wxPGComboBox;
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
// Global variables
|
||||
@@ -1219,8 +1220,11 @@ public:
|
||||
void IncFrozen() { m_frozen++; }
|
||||
void DecFrozen() { m_frozen--; }
|
||||
|
||||
void OnComboItemPaint( wxPGCustomComboControl* pCb,int item,wxDC& dc,
|
||||
wxRect& rect,int flags );
|
||||
void OnComboItemPaint( const wxPGComboBox* pCb,
|
||||
int item,
|
||||
wxDC* pDc,
|
||||
wxRect& rect,
|
||||
int flags );
|
||||
|
||||
/** Standardized double-to-string conversion.
|
||||
*/
|
||||
|
@@ -266,7 +266,6 @@ class wxPropertyGrid;
|
||||
class wxPropertyGridEvent;
|
||||
class wxPropertyGridManager;
|
||||
class wxPGOwnerDrawnComboBox;
|
||||
class wxPGCustomComboControl;
|
||||
class wxPGEditorDialogAdapter;
|
||||
class wxPGValidationInfo;
|
||||
|
||||
|
@@ -363,7 +363,10 @@ public:
|
||||
*/
|
||||
const wxPGAttributeStorage& GetPropertyAttributes( wxPGPropArg id ) const
|
||||
{
|
||||
wxPG_PROP_ARG_CALL_PROLOG_RETVAL(*((const wxPGAttributeStorage*)NULL));
|
||||
// If 'id' refers to invalid property, then we will return dummy
|
||||
// attributes (ie. root property's attributes, which contents should
|
||||
// should always be empty and of no consequence).
|
||||
wxPG_PROP_ARG_CALL_PROLOG_RETVAL(m_pState->DoGetRoot()->GetAttributes());
|
||||
return p->GetAttributes();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user