diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-08-09 09:07:15 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-08-09 09:07:15 +0000 |
commit | 9c296ba992f56ef478604802a7c6b765c41e9feb (patch) | |
tree | d64aa52fc9d5875c3f602ec64c6c3cdd89c188d9 /Build/source/texk/dvipdfm-x/dvi.c | |
parent | 2e31eff467d7668620e7ade0aa88a29579bfee33 (diff) |
dvipdfm-x: Bug fix for papersize specials from Akira and Kitagawa-san plus tests
git-svn-id: svn://tug.org/texlive/trunk@31398 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/dvi.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/dvi.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Build/source/texk/dvipdfm-x/dvi.c b/Build/source/texk/dvipdfm-x/dvi.c index 25bdbe6e7eb..4f1977b6598 100644 --- a/Build/source/texk/dvipdfm-x/dvi.c +++ b/Build/source/texk/dvipdfm-x/dvi.c @@ -2551,16 +2551,18 @@ scan_special (double *wd, double *ht, double *xo, double *yo, char *lm, qchr = *p; p++; skip_white(&p, endptr); } - error = read_length(&tmp, dvi_tell_mag(), &p, endptr); + error = read_length(&tmp, 1.0, &p, endptr); if (!error) { - *wd = tmp * dvi_tell_mag(); + double tmp1; + skip_white(&p, endptr); if (p < endptr && *p == ',') { p++; skip_white(&p, endptr); } - error = read_length(&tmp, dvi_tell_mag(), &p, endptr); + error = read_length(&tmp1, 1.0, &p, endptr); if (!error) - *ht = tmp * dvi_tell_mag(); + *wd = tmp; + *ht = tmp1; skip_white(&p, endptr); } if (!error && qchr) { /* Check if properly quoted */ |