View | Details | Raw Unified | Return to bug 197888 | Differences between
and this patch

Collapse All | Expand All

(-)devel/codeblocks/files/patch-src_sdk_wxpropgrid_include_wx_propgrid_propgrid.h (+11 lines)
Line 0 Link Here
1
--- src/sdk/wxpropgrid/include/wx/propgrid/propgrid.h.orig	2016-01-23 16:43:00 UTC
2
+++ src/sdk/wxpropgrid/include/wx/propgrid/propgrid.h
3
@@ -700,7 +700,7 @@ protected:
4
 #define wxPG_EMPTY_ARRAYSTRING  wxArrayString()
5
 
6
 #if !defined(SWIG)
7
-    #define wxPG_LABEL              (*((wxString*)NULL))  // Used to tell wxPGProperty to use label as name as well.
8
+    extern WXDLLIMPEXP_PG const wxString wxPG_LABEL; // Used to tell wxPGProperty to use label as name as well.
9
     #define wxPG_NULL_BITMAP        wxNullBitmap
10
     #define wxPG_COLOUR_BLACK       (*wxBLACK)
11
 #else
(-)devel/codeblocks/files/patch-src_sdk_wxpropgrid_src_propgrid.cpp (+28 lines)
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

Return to bug 197888