diff options
Diffstat (limited to 'src/lib/format.cc')
| -rw-r--r-- | src/lib/format.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/format.cc b/src/lib/format.cc index dcc884412..d99ed926a 100644 --- a/src/lib/format.cc +++ b/src/lib/format.cc @@ -185,5 +185,12 @@ Format::all () int Format::dcp_padding () const { - return rint ((_dcp_size.width - (_dcp_size.height * _ratio / 100.0)) / 2.0); + int p = rint ((_dcp_size.width - (_dcp_size.height * _ratio / 100.0)) / 2.0); + + /* This comes out -ve for Scope; bodge it */ + if (p < 0) { + p = 0; + } + + return p; } |
