[LIB-9] Add ability to archive qrcode content
[chesshog.git] / chesshog-qrcode / src / main / java / org / hedgecode / chess / qrcode / ChessQRMatrixUtils.java
index 75df9f9..a0e80c5 100644 (file)
@@ -81,8 +81,8 @@ public final class ChessQRMatrixUtils {
 
 
     static ByteMatrix embedChessLogoPattern(ByteMatrix byteMatrix) {
-        if (byteMatrix == null || byteMatrix.getWidth() < CHESS_LOGO_PATTERN_LENGTH + 14) // todo: 14
-            return null;
+        if (byteMatrix == null || byteMatrix.getWidth() < CHESS_LOGO_PATTERN_LENGTH + 14)
+            return null; // todo: check for Version
 
         int xStart = (byteMatrix.getWidth() - CHESS_LOGO_PATTERN_LENGTH) / 2;
         int yStart = (byteMatrix.getHeight() - CHESS_LOGO_PATTERN_LENGTH) / 2;