diff options
Diffstat (limited to 'graphics/extrema/patches/patch-src_wxForms_LegendPopup.cpp')
-rw-r--r-- | graphics/extrema/patches/patch-src_wxForms_LegendPopup.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/graphics/extrema/patches/patch-src_wxForms_LegendPopup.cpp b/graphics/extrema/patches/patch-src_wxForms_LegendPopup.cpp new file mode 100644 index 00000000000..99f2396cf9e --- /dev/null +++ b/graphics/extrema/patches/patch-src_wxForms_LegendPopup.cpp @@ -0,0 +1,17 @@ +$NetBSD: patch-src_wxForms_LegendPopup.cpp,v 1.1 2012/11/23 12:29:15 joerg Exp $ + +--- src/wxForms/LegendPopup.cpp.orig 2012-11-21 22:11:15.000000000 +0000 ++++ src/wxForms/LegendPopup.cpp +@@ -166,10 +166,11 @@ void LegendPopup::CreateForm() + titleBotSizer->Add( new wxStaticText(titleBotPanel,wxID_ANY,wxT("Font")), + wxSizerFlags(0).Left().Border(wxALL,2) ); + int nf = GRA_fontControl::GetCount(); +- wxString choices[nf]; ++ wxString *choices = new wxString[nf]; + for( int i=0; i<nf; ++i )choices[i] = GRA_fontControl::GetFont(i)->GetFontName(); + titleFontCB_ = new wxComboBox( titleBotPanel, ID_font, wxT(""), wxDefaultPosition, wxSize(200,25), nf, + choices, wxCB_READONLY ); ++ delete[] choices; + titleFontCB_->SetToolTip( wxT("choose the title font") ); + titleBotSizer->Add( titleFontCB_, wxSizerFlags(0).Left().Border(wxALL,2) ); + |