scribble: fix PDF rendering for image without bounding-box info
Merge to v6.1 original commit: 09b4445c7a28b1d8fc3feb2d4ab7a64e9a991a8a
This commit is contained in:
parent
1558ad5532
commit
ee3af7611f
|
@ -399,7 +399,8 @@
|
|||
(- (+ (list-ref (list-ref bstr+info+suffix 0) 3)
|
||||
(- (ceiling height) height))
|
||||
pad-bottom))]
|
||||
[width (- (list-ref (list-ref bstr+info+suffix 0) 1) pad-left pad-right)]
|
||||
[width (let ([w (list-ref (list-ref bstr+info+suffix 0) 1)])
|
||||
(and w (- w pad-left pad-right)))]
|
||||
[fn (install-file (format "pict~a" suffix) bstr)])
|
||||
(if descent
|
||||
(printf "\\raisebox{-~abp}{\\makebox[~abp][l]{\\includegraphics[~atrim=~a ~a ~a ~a]{~a}}}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user