summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorJjgod Jiang <gzjjgod@gmail.com>2016-02-09 11:12:05 +0000
committerJjgod Jiang <gzjjgod@gmail.com>2016-02-09 11:12:05 +0000
commit9b38f29663b6aa300fd0f19ecfce76c26f59e610 (patch)
treee1f4ec40d16a2a2afda362902b5f9bd6926fcf5f /Build
parentadec059e95b8e5728d8fb2d8420c5e928812c282 (diff)
texk/dvipdfm-x/dvi.c: skip bytes by checking each flags individually
git-svn-id: svn://tug.org/texlive/trunk@39639 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/dvipdfm-x/dvi.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/Build/source/texk/dvipdfm-x/dvi.c b/Build/source/texk/dvipdfm-x/dvi.c
index b686473d756..403a83ea0fe 100644
--- a/Build/source/texk/dvipdfm-x/dvi.c
+++ b/Build/source/texk/dvipdfm-x/dvi.c
@@ -1611,11 +1611,19 @@ skip_native_font_def (void)
flags = get_unsigned_pair(dvi_file);
name_length = get_unsigned_byte(dvi_file);
skip_bytes(name_length + 4, dvi_file);
- if ((flags & XDV_FLAG_COLORED) || (flags & XDV_FLAG_EMBOLDEN) ||
- (flags & XDV_FLAG_EXTEND) || (flags & XDV_FLAG_SLANT)) {
+
+ if (flags & XDV_FLAG_COLORED)
skip_bytes(4, dvi_file);
- }
- }
+
+ if (flags & XDV_FLAG_EXTEND)
+ skip_bytes(4, dvi_file);
+
+ if (flags & XDV_FLAG_SLANT)
+ skip_bytes(4, dvi_file);
+
+ if (flags & XDV_FLAG_EMBOLDEN)
+ skip_bytes(4, dvi_file);
+}
static void
do_native_font_def (int32_t tex_id)