Skip to content

Commit 78e5736

Browse files
committed
TL operator can be outside BT...ET block
Hence, existence of a valid Tlm in the state cannot be ascertained.
1 parent b3ac8da commit 78e5736

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PDPageElement.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ end
646646

647647
function set_text_pos!(tx, ty, state::Vector{Dict})
648648
tmul = [1.0 0.0 0.0; 0.0 1.0 0.0; tx ty 1.0]
649-
tlm = state[end][:Tlm]
649+
tlm = get(state[end], :Tlm, eye(3)) #:TL may be called outside of BT...ET block
650650
tm = tlm = tmul*tlm
651651

652652
state[end][:Tm] = tm

0 commit comments

Comments
 (0)