summaryrefslogtreecommitdiff
path: root/src/wx/colour_conversion_editor.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-11-27 14:36:18 +0000
committerCarl Hetherington <cth@carlh.net>2015-11-27 14:36:18 +0000
commitec93ea976a7eb9fbc542d5264cc4cfdefb42b49f (patch)
treeb3221d9c65acf6004d5e75c7bf61fac01edc050b /src/wx/colour_conversion_editor.cc
parent8f091c9a58a7e8388e9a09e32520a0fce8f6d8fc (diff)
Set the font to bold rather than using markup as the former
results in truncated label text on some versions of OS X; ported from 1.x
Diffstat (limited to 'src/wx/colour_conversion_editor.cc')
-rw-r--r--src/wx/colour_conversion_editor.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wx/colour_conversion_editor.cc b/src/wx/colour_conversion_editor.cc
index c24cc689e..36ca074fa 100644
--- a/src/wx/colour_conversion_editor.cc
+++ b/src/wx/colour_conversion_editor.cc
@@ -216,8 +216,10 @@ ColourConversionEditor::ColourConversionEditor (wxWindow* parent, bool yuv)
wxStaticText *
ColourConversionEditor::subhead (wxGridBagSizer* sizer, wxWindow* parent, wxString text, int& row) const
{
- wxStaticText* m = new wxStaticText (parent, wxID_ANY, wxT (""));
- m->SetLabelMarkup ("<b>" + text + "</b>");
+ wxStaticText* m = new wxStaticText (parent, wxID_ANY, text);
+ wxFont font (*wxNORMAL_FONT);
+ font.SetWeight (wxFONTWEIGHT_BOLD);
+ m->SetFont (font);
sizer->Add (m, wxGBPosition (row, 0), wxGBSpan (1, 3), wxALIGN_CENTER_VERTICAL | wxTOP, 12);
++row;
return m;