From 6c18c9a37f3a1c8ea1d3ca7791a0f1380b23f5d1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 19 Sep 2022 21:16:18 +0200 Subject: [PATCH] Fix incorrect subtitle outline rectangle display when subtitles were analysed at non-zero offsets (#2336). --- src/wx/text_panel.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wx/text_panel.cc b/src/wx/text_panel.cc index 42dace9ba..a9a3f142d 100644 --- a/src/wx/text_panel.cc +++ b/src/wx/text_panel.cc @@ -873,8 +873,8 @@ TextPanel::update_outline_subtitles_in_viewer () if (rect) { auto content = _analysis_content.lock (); DCPOMATIC_ASSERT (content); - rect->x += content->text.front()->x_offset(); - rect->y += content->text.front()->y_offset(); + rect->x += content->text.front()->x_offset() - _analysis->analysis_x_offset(); + rect->y += content->text.front()->y_offset() - _analysis->analysis_y_offset(); } fv->set_outline_subtitles (rect); } else { -- 2.30.2