From 76cb6955b6b93ed139965d2022cf02627a497b3a Mon Sep 17 00:00:00 2001
From: "Sven M. Hallberg" <pesco@khjk.org>
Date: Wed, 1 Mar 2023 17:43:38 +0000
Subject: [PATCH] access text state consistently through node

This one line going through another variable seems to spurious.
Note that ts is always equal to &node->ts.
---
 pdf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pdf.c b/pdf.c
index 53ae22f..e814a39 100644
--- a/pdf.c
+++ b/pdf.c
@@ -2044,7 +2044,7 @@ act_txtobj(const HParseResult *p, void *u)
 			break;
 
 		case TS_Tf:
-			ts->font      = txte;
+			node->ts.font      = txte;
 			node->ts.font_size = txte->fref.fontsize;
 			break;
 
-- 
GitLab