Skip to content

Commit 693a794

Browse files
committed
Also prevent drawing of text on dummy frame
1 parent b83bfa7 commit 693a794

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/draw/TTextPainter.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ class TTextPainter extends ObjectPainter {
1515
pp = this.getPadPainter(),
1616
fp = this.getFramePainter(),
1717
is_url = text.fName.startsWith('http://') || text.fName.startsWith('https://');
18+
19+
// special handling of dummy frame painter
20+
if (fp?.getDrawDom() === null)
21+
return this;
22+
1823
let fact = 1, use_frame = false;
1924

2025
this.createAttText({ attr: text });

0 commit comments

Comments
 (0)