Fix odd difference on handling of x and y scale for subtitles in the UI.
authorCarl Hetherington <cth@carlh.net>
Fri, 26 Mar 2021 23:04:47 +0000 (00:04 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 26 Mar 2021 23:04:47 +0000 (00:04 +0100)
src/wx/text_panel.cc

index 0a35e649704e9484244ac944cd2ec8b748e9f594..8d295180a0dfd910c8c5530d6a897c7c99b61d32 100644 (file)
@@ -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);
        }
 }