Skip to content

Commit

Permalink
Merge pull request #6 from jiashouli/test_moticsvs
Browse files Browse the repository at this point in the history
Support motic svs
  • Loading branch information
martinweihrauch authored Apr 19, 2019
2 parents e0e9614 + d85a970 commit 166b606
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openslide-vendor-aperio.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#include <math.h>
#include <tiffio.h>

static const char APERIO_DESCRIPTION[] = "Aperio";
static const char APERIO_DESCRIPTION[] = "AppMag";

#define APERIO_COMPRESSION_JP2K_YCBCR 33003
#define APERIO_COMPRESSION_JP2K_RGB 33005
Expand Down Expand Up @@ -295,7 +295,7 @@ static bool aperio_detect(const char *filename G_GNUC_UNUSED,
if (!tagval) {
return false;
}
if (!g_str_has_prefix(tagval, APERIO_DESCRIPTION)) {
if (!g_strrstr(tagval, APERIO_DESCRIPTION)) {
g_set_error(err, OPENSLIDE_ERROR, OPENSLIDE_ERROR_FAILED,
"Not an Aperio slide");
return false;
Expand Down

0 comments on commit 166b606

Please sign in to comment.