projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
182b9d2
)
Fix incorrect subtitle outline rectangle display when subtitles
author
Carl Hetherington
<cth@carlh.net>
Mon, 19 Sep 2022 19:16:18 +0000
(21:16 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 19 Sep 2022 19:16:18 +0000
(21:16 +0200)
were analysed at non-zero offsets (#2336).
src/wx/text_panel.cc
patch
|
blob
|
history
diff --git
a/src/wx/text_panel.cc
b/src/wx/text_panel.cc
index 42dace9ba81e817847ad159a8515507ab425a3a4..a9a3f142dd60ce3773f5f2d0f8acb7965052f415 100644
(file)
--- 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 {