summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-09-19 21:16:18 +0200
committerCarl Hetherington <cth@carlh.net>2022-09-19 21:16:18 +0200
commit6c18c9a37f3a1c8ea1d3ca7791a0f1380b23f5d1 (patch)
treeb7add7f1a131b022be7964fea629063795cc3417 /src
parent182b9d2e2feb6545592868606aaf0f0146095481 (diff)
Fix incorrect subtitle outline rectangle display when subtitles
were analysed at non-zero offsets (#2336).
Diffstat (limited to 'src')
-rw-r--r--src/wx/text_panel.cc4
1 files 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 {