diff --git a/esphome/components/graphical_layout/text_run_panel.cpp b/esphome/components/graphical_layout/text_run_panel.cpp index 5dcb93f2fb..2b3a3b8366 100644 --- a/esphome/components/graphical_layout/text_run_panel.cpp +++ b/esphome/components/graphical_layout/text_run_panel.cpp @@ -129,7 +129,7 @@ std::vector> TextRunPanel::fit_words_to_bounds_( } void TextRunPanel::apply_alignment_to_lines_(std::vector> &lines, - display::TextAlign alignment) { + display::TextAlign alignment) { const auto x_align = display::TextAlign(int(this->text_align_) & TEXT_ALIGN_X_MASK); const auto y_align = display::TextAlign(int(this->text_align_) & TEXT_ALIGN_Y_MASK); @@ -192,7 +192,8 @@ void TextRunPanel::apply_alignment_to_lines_(std::vector> runs = this->split_runs_into_words_(); std::vector> lines = this->fit_words_to_bounds_(runs, bounds); this->apply_alignment_to_lines_(lines, this->text_align_);