Skip to content

Commit

Permalink
Fix and test
Browse files Browse the repository at this point in the history
  • Loading branch information
victormunoz committed Jun 2, 2017
1 parent c4582dd commit 9097a5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/java/com/easyinnova/tiff/model/TiffTags.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ private static Tag readTagFromBuffer(BufferedReader br, boolean close) {
sCurrentLine = br.readLine();
valueCodes = sCurrentLine.split(",");
} else if (sCurrentLine.contains("\"description\"")) {
sCurrentLine = br.readLine();
description = sCurrentLine.substring(sCurrentLine.indexOf(":") + 1).replace("\"", "").replace(",", "").trim();
} else if (sCurrentLine.contains("\"valueDescriptions\"")) {
sCurrentLine = br.readLine();
Expand Down
3 changes: 3 additions & 0 deletions src/test/java/com/easyinnova/tiff/TiffTagsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ public void test() {
assertEquals(tag2.getTextDescription("2"), "Planar");
assertEquals(tag2.getTextDescription("unexisting"), null);

tag2 = TiffTags.getTag(TiffTags.getTagId("Compression"));
assertEquals(tag2.getDescription(), "Compression scheme");

TiffReader tr;
try {
tr = new TiffReader();
Expand Down

0 comments on commit 9097a5f

Please sign in to comment.