Skip to content

Commit 90c789e

Browse files
authored
Merge pull request #4155 from melissalinkert/prairie-type-fix
Prairie: look for "<PV" string instead of just "PV"
2 parents 6815841 + 2a3af43 commit 90c789e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/formats-gpl/src/loci/formats/in/PrairieReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public boolean isThisType(RandomAccessInputStream stream) throws IOException {
184184
final int blockLen = (int) Math.min(1048608, stream.length());
185185
if (!FormatTools.validStream(stream, blockLen, false)) return false;
186186
String s = stream.readString(blockLen);
187-
if (s.indexOf("xml") != -1 && s.indexOf("PV") != -1) return true;
187+
if (s.indexOf("xml") != -1 && s.indexOf("<PV") != -1) return true;
188188

189189
TiffParser tp = new TiffParser(stream);
190190
IFD ifd = tp.getFirstIFD();

0 commit comments

Comments
 (0)