diff options
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/ImageSize.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/ImageSize.hs b/src/Text/Pandoc/ImageSize.hs index 1b6e9b0ab..d48c6a5ae 100644 --- a/src/Text/Pandoc/ImageSize.hs +++ b/src/Text/Pandoc/ImageSize.hs @@ -70,7 +70,7 @@ sizeInPixels :: ImageSize -> (Integer, Integer) sizeInPixels s = (pxX s, pxY s) sizeInPoints :: ImageSize -> (Integer, Integer) -sizeInPoints s = (pxX s `div` dpiX s * 72, pxY s `div` dpiY s * 72) +sizeInPoints s = (pxX s * 72 `div` dpiX s, pxY s * 72 `div` dpiY s) pngSize :: ByteString -> Maybe ImageSize pngSize img = do |