summaryrefslogtreecommitdiff
path: root/src/wx/text_panel.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-08-19 14:01:14 +0100
committerCarl Hetherington <cth@carlh.net>2018-08-19 14:01:14 +0100
commit7d81ed516d246b5d1387f5bf1019237c5c7a8d2b (patch)
tree1cb650da7e385dc0869518376e9bbfc8ead90e87 /src/wx/text_panel.cc
parentf217913a609e67f3dd0b804e2b961dcbd8556e63 (diff)
Update new panels when they are created.
Diffstat (limited to 'src/wx/text_panel.cc')
-rw-r--r--src/wx/text_panel.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wx/text_panel.cc b/src/wx/text_panel.cc
index 7c2ddd7f9..68f246913 100644
--- a/src/wx/text_panel.cc
+++ b/src/wx/text_panel.cc
@@ -170,6 +170,8 @@ TextPanel::TextPanel (ContentPanel* p, TextType t)
_y_scale->SetRange (10, 1000);
_line_spacing->SetRange (10, 1000);
+ content_selection_changed ();
+
_reference->Bind (wxEVT_CHECKBOX, boost::bind (&TextPanel::reference_clicked, this));
_use->Bind (wxEVT_CHECKBOX, boost::bind (&TextPanel::use_toggled, this));
_type->Bind (wxEVT_CHOICE, boost::bind (&TextPanel::type_changed, this));