mbattyani / cl-pdf

CL-PDF is a cross-platform Common Lisp library for generating PDF files.
Other
115 stars 41 forks source link

Uninitialised *name-counter* in pdf.lisp introduces a bug in tt::render-document. #44

Open muswawir opened 1 month ago

muswawir commented 1 month ago

Setup: sbcl-2.4.9, Ubuntu 24.04. I was using tt::render-document when I found that pdf::*name-counter* was not initialised. Defined as (defvar *name-counter*) and the macro wasn't working.

Defining it as (defvar *name-counter* 0) fixed the bug.