mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-22 20:14:04 +02:00
eeshow/gfx/pdftoc.c (line): don't be fooled by "/Type /Pages"
We really ought to test properly for end-of-word, not rely on prefixes.
This commit is contained in:
parent
cdb68f70a2
commit
44e17ff5ab
@ -153,7 +153,8 @@ static void line(struct pdftoc *ctx, const char *s)
|
|||||||
ctx->state = idle;
|
ctx->state = idle;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (strbegins(s, "<< /Type /Page")) {
|
if (strbegins(s, "<< /Type /Page") &&
|
||||||
|
!strbegins(s, "<< /Type /Pages")) {
|
||||||
ctx->curr_obj->is_page = 1;
|
ctx->curr_obj->is_page = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user