summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-06-16 14:55:43 +0100
committerCarl Hetherington <cth@carlh.net>2013-06-16 14:55:43 +0100
commit97d3bc66b4bc1a5d3fad6a27e951186771039cc9 (patch)
tree7361715a3c0b31e190ee58232885a675717623ff /src/lib
parent4699463e19b2a153d64aeb0e00c62be1157bfc1b (diff)
Fix hash on bottom line after odd crops of YUV images.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/image.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/image.cc b/src/lib/image.cc
index 5f7d3f034..0bff1a7cc 100644
--- a/src/lib/image.cc
+++ b/src/lib/image.cc
@@ -74,7 +74,7 @@ Image::line_factor (int n) const
int
Image::lines (int n) const
{
- return size().height / line_factor (n);
+ return rint (ceil (static_cast<double>(size().height) / line_factor (n)));
}
/** @return Number of components */