summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2023-09-27 19:09:02 +0200
committerAlbert Astals Cid <aacid@kde.org>2023-09-27 17:12:12 +0000
commitc673208da4144429f2e43b4ad47c349ebda38691 (patch)
treeac037ef7d59d01e0c0dc784d8d73d725967a87ab
parentbbf225296bcb698713fda0d144e9d86ea2e28c55 (diff)
FoFiType1::parse: Also keep parsing if !gotMatrix
We probably forgot to add it in 876021b1aa16ad38767a91e1be31c392f368fde2
-rw-r--r--fofi/FoFiType1.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/fofi/FoFiType1.cc b/fofi/FoFiType1.cc
index 6a629426..6d972232 100644
--- a/fofi/FoFiType1.cc
+++ b/fofi/FoFiType1.cc
@@ -207,7 +207,7 @@ void FoFiType1::parse()
bool gotMatrix, continueLine;
gotMatrix = false;
- for (i = 1, line = (char *)file; i <= 100 && line && (!name || !encoding); ++i) {
+ for (i = 1, line = (char *)file; i <= 100 && line && (!name || !encoding || !gotMatrix); ++i) {
// get font name
if (!name && (line + 9 <= (char *)file + len) && !strncmp(line, "/FontName", 9)) {