summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);
}
}