|
Line 0
Link Here
|
|
|
1 |
--- src/sdk/wxpropgrid/src/propgrid.cpp.orig 2016-01-23 16:43:00 UTC |
| 2 |
+++ src/sdk/wxpropgrid/src/propgrid.cpp |
| 3 |
@@ -333,6 +333,8 @@ const wxChar *wxPGTypeName_PyObject = wx |
| 4 |
|
| 5 |
static const wxChar* gs_noCellText = wxT("@!"); |
| 6 |
|
| 7 |
+const wxString wxPG_LABEL; |
| 8 |
+ |
| 9 |
// ----------------------------------------------------------------------- |
| 10 |
|
| 11 |
static void wxPGDrawFocusRect( wxDC& dc, const wxRect& rect ) |
| 12 |
@@ -679,13 +681,13 @@ void wxPGProperty::Init() |
| 13 |
|
| 14 |
void wxPGProperty::Init( const wxString& label, const wxString& name ) |
| 15 |
{ |
| 16 |
- if ( &label != ((wxString*)NULL) ) |
| 17 |
+ if ( label != wxPG_LABEL ) |
| 18 |
m_label = label; |
| 19 |
|
| 20 |
#ifndef __WXPYTHON__ |
| 21 |
- if ( &name != ((wxString*)NULL) ) |
| 22 |
+ if ( name != wxPG_LABEL ) |
| 23 |
#else |
| 24 |
- if ( (&name != ((wxString*)NULL)) && name != wxT("_LABEL_AS_NAME") ) |
| 25 |
+ if ( name != wxPG_LABEL && name != wxT("_LABEL_AS_NAME") ) |
| 26 |
#endif |
| 27 |
DoSetName( name ); |
| 28 |
else |