Merge pull request #272 from Zavael/master

minSize from provided sizes
This commit is contained in:
Sean Owen 2014-12-17 21:56:46 +00:00
commit 45e591b9ef

View file

@ -60,7 +60,7 @@ public final class DataMatrixWriter implements Writer {
// Try to get force shape & min / max size
SymbolShapeHint shape = SymbolShapeHint.FORCE_NONE;
Dimension minSize = null;
Dimension minSize = new Dimension(width, height);
Dimension maxSize = null;
if (hints != null) {
SymbolShapeHint requestedShape = (SymbolShapeHint) hints.get(EncodeHintType.DATA_MATRIX_SHAPE);