From b67edaff6d47256d869ecaee60dd3bf609e87709 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 24 May 2012 01:56:06 +0000 Subject: [PATCH] assdraw: add missing news when creating PG properties Originally committed to SVN as r6858. --- contrib/assdraw/src/settings.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/contrib/assdraw/src/settings.cpp b/contrib/assdraw/src/settings.cpp index be5c3ef0d..864f782d5 100644 --- a/contrib/assdraw/src/settings.cpp +++ b/contrib/assdraw/src/settings.cpp @@ -65,16 +65,16 @@ void ASSDrawSettingsDialog::Init() //wxSUNKEN_BORDER ); - #define APPENDCOLOURPROP(pgid, label, color) pgid = propgrid->Append( wxColourProperty(label, wxPG_LABEL, color) ); + #define APPENDCOLOURPROP(pgid, label, color) pgid = propgrid->Append(new wxColourProperty(label, wxPG_LABEL, color)); #define APPENDUINTPROP(pgid, label, uint) \ - pgid = propgrid->Append(wxUIntProperty(label, wxPG_LABEL, uint) ); \ + pgid = propgrid->Append(new wxUIntProperty(label, wxPG_LABEL, uint) ); \ propgrid->SetPropertyValidator( pgid, validator ); #define APPENDBOOLPROP(pgid, label, boolvar) \ - pgid = propgrid->Append(wxBoolProperty (label, wxPG_LABEL, boolvar ) ); \ + pgid = propgrid->Append(new wxBoolProperty (label, wxPG_LABEL, boolvar ) ); \ propgrid->SetPropertyAttribute( pgid, wxPG_BOOL_USE_CHECKBOX, (long)1 ); wxLongPropertyValidator validator(0x0,0xFF); - propgrid->Append(wxPropertyCategory(_T("Appearance"),wxPG_LABEL) ); + propgrid->Append(new wxPropertyCategory(_T("Appearance"),wxPG_LABEL) ); APPENDCOLOURPROP(colors_canvas_bg_pgid, _T("Canvas"), m_frame->colors.canvas_bg) APPENDCOLOURPROP(colors_canvas_shape_normal_pgid, _T("Drawing"), m_frame->colors.canvas_shape_normal) APPENDUINTPROP(alphas_canvas_shape_normal_pgid, _T("Drawing @"), m_frame->alphas.canvas_shape_normal) @@ -97,7 +97,7 @@ void ASSDrawSettingsDialog::Init() APPENDCOLOURPROP(colors_ruler_h_pgid, _T("H ruler"), m_frame->colors.ruler_h) APPENDCOLOURPROP(colors_ruler_v_pgid, _T("V ruler"), m_frame->colors.ruler_v) - propgrid->Append(wxPropertyCategory(_T("Behaviors"),wxPG_LABEL) ); + propgrid->Append(new wxPropertyCategory(_T("Behaviors"),wxPG_LABEL) ); APPENDBOOLPROP(behaviors_capitalizecmds_pgid, _T("Capitalize commands"), m_frame->behaviors.capitalizecmds); APPENDBOOLPROP(behaviors_autoaskimgopac_pgid, _T("Ask for image opacity"), m_frame->behaviors.autoaskimgopac); APPENDBOOLPROP(behaviors_parse_spc_pgid, _T("Parse S/P/C"), m_frame->behaviors.parse_spc);