aboutsummaryrefslogtreecommitdiff
path: root/office/texlive/debian/upstream-svn31350-dvips
blob: cc11598272e702f08c5e76c843ec1c98e4ad47b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
upstream svn31350 fix dvips
---
 texk/dvipsk/ChangeLog |    5 +++++
 texk/dvipsk/bbox.c    |    4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

--- texlive-branch2013-source.svn.orig/texk/dvipsk/ChangeLog
+++ texlive-branch2013-source.svn/texk/dvipsk/ChangeLog
@@ -1,3 +1,8 @@
+2013-08-05  Akira Kakuto  <kakuto@fuk.kindai.ac.jp>
+
+	* bbox.c: Fix a bug in bbdopage() to obtain correct BoundingBox in
+	vertical mode of pTeX.
+
 2013-04-07  Karl Berry  <karl@tug.org>
 
 	* resident.c (getdefaults) <m>: if <= 0, set to INT_MAX.
--- texlive-branch2013-source.svn.orig/texk/dvipsk/bbox.c
+++ texlive-branch2013-source.svn/texk/dvipsk/bbox.c
@@ -346,8 +346,8 @@
             if (v - bcd->ury < lly) lly = v - bcd->ury;
             if (v - bcd->lly > ury) ury = v - bcd->lly;
          } else {
-            if (h + bcd->ury < llx) llx = h + bcd->ury;
-            if (h + bcd->lly > urx) urx = h + bcd->lly;
+            if (h + bcd->ury > urx) urx = h + bcd->ury;
+            if (h + bcd->lly < llx) llx = h + bcd->lly;
             if (v + bcd->llx < lly) lly = v + bcd->llx;
             if (v + bcd->urx > ury) ury = v + bcd->urx;
          }