Fix odd difference on handling of x and y scale for subtitles in the UI.
[dcpomatic.git] / src / wx / text_panel.cc
index dec58f0cd1fc87b3a5ba49b4bd9ce983864b7622..8d295180a0dfd910c8c5530d6a897c7c99b61d32 100644 (file)
@@ -360,7 +360,7 @@ TextPanel::dcp_track_changed ()
 void
 TextPanel::film_changed (Film::Property property)
 {
-       if (property == Film::CONTENT || property == Film::REEL_TYPE || property == Film::INTEROP) {
+       if (property == Film::Property::CONTENT || property == Film::Property::REEL_TYPE || property == Film::Property::INTEROP) {
                setup_sensitivity ();
        }
 }
@@ -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);
        }
 }