mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
83175da4b2
commit
3e1a43e86a
@ -138,6 +138,7 @@ Fonts::size_type Fonts::add_font(string* font_name, double size, GfxRGB rgb) {
|
|||||||
XMLFont *f = NULL;
|
XMLFont *f = NULL;
|
||||||
if (font_name == NULL)
|
if (font_name == NULL)
|
||||||
font_name = new string("Unknown");
|
font_name = new string("Unknown");
|
||||||
|
// font_name must not be deleted
|
||||||
f = new XMLFont(font_name, size, rgb);
|
f = new XMLFont(font_name, size, rgb);
|
||||||
|
|
||||||
return this->add_font(f);
|
return this->add_font(f);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user