projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Assorted image subtitle fixes.
[dcpomatic.git]
/
src
/
lib
/
render_subtitles.cc
diff --git
a/src/lib/render_subtitles.cc
b/src/lib/render_subtitles.cc
index bc89fd3f88dc85977e2d765227401dde059f0275..9620eacbf5c58ebe4a3dc847262067c6802ea54e 100644
(file)
--- a/
src/lib/render_subtitles.cc
+++ b/
src/lib/render_subtitles.cc
@@
-50,10
+50,6
@@
calculate_position (dcp::VAlign v_align, double v_position, int target_height, i
PositionImage
render_subtitles (list<dcp::SubtitleString> subtitles, dcp::Size target)
{
PositionImage
render_subtitles (list<dcp::SubtitleString> subtitles, dcp::Size target)
{
- if (subtitles.empty ()) {
- return PositionImage ();
- }
-
/* Estimate height that the subtitle image needs to be */
optional<int> top;
optional<int> bottom;
/* Estimate height that the subtitle image needs to be */
optional<int> top;
optional<int> bottom;