Fix order of operations in matrix multiplication

Issue #73. The order of operations happens to not matter for scaling
but does matter for translation. We only need scaling to find the DPI,
so the error was not noticed. Mainly useful to other uses of this
library.
This commit is contained in:
James R. Barlow
2016-06-23 13:36:23 -07:00
parent b4a734fc0d
commit a45505cf1d
+1 -1
View File
@@ -93,7 +93,7 @@ def _interpret_contents(contentstream):
ctm = stack.pop()
elif command == b'cm':
ctm = matrix_mult(
ctm, _matrix_from_shorthand(operands))
_matrix_from_shorthand(operands), ctm)
elif command == b'Do':
image_name = operands[0]
image_raster_settings.append(