From: handa Date: Wed, 25 Feb 2009 04:38:52 +0000 (+0000) Subject: (main): If ! otf, don't setup sub14. X-Git-Tag: REL-0-9-9~14 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=30c26fcd3a91a11880362a52b1635b6ae2483033;p=m17n%2Flibotf.git (main): If ! otf, don't setup sub14. --- diff --git a/example/otfview.c b/example/otfview.c index 3700d9e..919c8f3 100644 --- a/example/otfview.c +++ b/example/otfview.c @@ -1564,12 +1564,13 @@ main (int argc, char **argv) || (OTF_check_table (otf, "GSUB") < 0 && OTF_check_table (otf, "GPOS") < 0)) otf = NULL; - for (i = 0; i < otf->cmap->numTables; i++) - if (otf->cmap->EncodingRecord[i].subtable.format == 14) - { - sub14 = otf->cmap->EncodingRecord[i].subtable.f.f14; - break; - } + else + for (i = 0; i < otf->cmap->numTables; i++) + if (otf->cmap->EncodingRecord[i].subtable.format == 14) + { + sub14 = otf->cmap->EncodingRecord[i].subtable.f.f14; + break; + } } {