From 30c26fcd3a91a11880362a52b1635b6ae2483033 Mon Sep 17 00:00:00 2001 From: handa Date: Wed, 25 Feb 2009 04:38:52 +0000 Subject: [PATCH] (main): If ! otf, don't setup sub14. --- example/otfview.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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; + } } { -- 1.7.10.4