minSize from provided sizes

create minSize Dimension from provided width and height
This commit is contained in:
Zavael 2014-12-17 15:41:33 +01:00
parent ce1fbe1b76
commit ea00f5a51c

View file

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