fix failure is the printout is empty

This commit is contained in:
krangelov
2021-11-25 13:51:19 +01:00
parent f845889702
commit 3fd668e525

View File

@@ -71,6 +71,10 @@ again: {
PgfText *PgfPrinter::get_text()
{
if (res == NULL) {
res = (PgfText*) malloc(sizeof(PgfText));
res->size = 0;
}
return res;
}