summaryrefslogtreecommitdiff
path: root/src/wx/text_panel.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-08-12 22:03:11 +0200
committerCarl Hetherington <cth@carlh.net>2021-08-12 23:18:53 +0200
commit19e47294d1de485a12dccf2c25bec0c8144049e8 (patch)
tree6dfdfc46bf6fbf4514e0ec303d094dc03992a16f /src/wx/text_panel.cc
parent423996af81218d48dbeaccef52ff822e02c43128 (diff)
Fix flickering black square when selecting content on Windows (#1866).
Diffstat (limited to 'src/wx/text_panel.cc')
-rw-r--r--src/wx/text_panel.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/wx/text_panel.cc b/src/wx/text_panel.cc
index 134d397e8..7bbead30c 100644
--- a/src/wx/text_panel.cc
+++ b/src/wx/text_panel.cc
@@ -62,8 +62,15 @@ TextPanel::TextPanel (ContentPanel* p, TextType t)
: ContentSubPanel (p, std_to_wx(text_type_to_name(t)))
, _original_type (t)
{
+
+}
+
+
+void
+TextPanel::create ()
+{
wxString refer = _("Use this DCP's subtitle as OV and make VF");
- if (t == TextType::CLOSED_CAPTION) {
+ if (_original_type == TextType::CLOSED_CAPTION) {
refer = _("Use this DCP's closed caption as OV and make VF");
}
@@ -131,6 +138,8 @@ TextPanel::TextPanel (ContentPanel* p, TextType t)
add_to_grid();
content_selection_changed ();
+
+ _sizer->Layout ();
}