forked from GitHub/gf-core
fix failure is the printout is empty
This commit is contained in:
@@ -71,6 +71,10 @@ again: {
|
|||||||
|
|
||||||
PgfText *PgfPrinter::get_text()
|
PgfText *PgfPrinter::get_text()
|
||||||
{
|
{
|
||||||
|
if (res == NULL) {
|
||||||
|
res = (PgfText*) malloc(sizeof(PgfText));
|
||||||
|
res->size = 0;
|
||||||
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user