summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-03-27 00:04:47 +0100
committerCarl Hetherington <cth@carlh.net>2021-03-27 00:04:47 +0100
commit882f5c4b78f5d2300881e0dbf27f4a8e5c3d0b8d (patch)
treef86de2335b0d6875aa26ed958b9976716cf6b90b /src
parent0f45c718bf9b8e3922349dc4d2e92db229e64d88 (diff)
Fix odd difference on handling of x and y scale for subtitles in the UI.
Diffstat (limited to 'src')
-rw-r--r--src/wx/text_panel.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/wx/text_panel.cc b/src/wx/text_panel.cc
index 0a35e6497..8d295180a 100644
--- a/src/wx/text_panel.cc
+++ b/src/wx/text_panel.cc
@@ -631,9 +631,8 @@ TextPanel::y_offset_changed ()
void
TextPanel::x_scale_changed ()
{
- auto c = _parent->selected_text ();
- if (c.size() == 1) {
- c.front()->text_of_original_type(_original_type)->set_x_scale (_x_scale->GetValue() / 100.0);
+ for (auto i: _parent->selected_text ()) {
+ i->text_of_original_type(_original_type)->set_x_scale (_x_scale->GetValue() / 100.0);
}
}