summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/pdf/pdffont.w
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/pdf/pdffont.w')
-rw-r--r--Build/source/texk/web2c/luatexdir/pdf/pdffont.w5
1 files changed, 3 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/luatexdir/pdf/pdffont.w b/Build/source/texk/web2c/luatexdir/pdf/pdffont.w
index 14693850c0b..0be685661c4 100644
--- a/Build/source/texk/web2c/luatexdir/pdf/pdffont.w
+++ b/Build/source/texk/web2c/luatexdir/pdf/pdffont.w
@@ -21,7 +21,7 @@
@ @c
static const char _svn_version[] =
- "$Id: pdffont.w 3571 2010-04-02 13:50:45Z taco $"
+ "$Id: pdffont.w 3638 2010-04-20 14:00:47Z taco $"
"$URL: http://foundry.supelec.fr/svn/luatex/branches/0.60.x/source/texk/web2c/luatexdir/pdf/pdffont.w $";
#include "ptexlib.h"
@@ -190,7 +190,8 @@ internal_font_number pdf_set_font(PDF pdf, internal_font_number f)
or some font with the same tfm name at different size and/or expansion.
*/
ff = pdf_font_num(f) < 0 ? -pdf_font_num(f) : f; /* aka |set_ff(f)| */
- addto_page_resources(pdf, obj_type_font, ff);
+ assert(pdf_font_num(ff) > 0); /* base font object number */
+ addto_page_resources(pdf, obj_type_font, pdf_font_num(ff));
return ff;
}