commit | 68b74ab18016520f755bf8bc35e9804fe378ad91 | [log] [tgz] |
---|---|---|
author | Tobias Deiminger <haxtibal@posteo.de> | Mon Jul 01 23:10:48 2019 +0200 |
committer | Tobias Deiminger <haxtibal@posteo.de> | Mon Jul 01 23:19:48 2019 +0200 |
tree | c795f9accb60f51dedad937d28fb440906ef12a3 | |
parent | 080a79b47c643ccf68d4be1b49ec6062d0b8ba36 [diff] |
Fix bad cast of GooString* to const char* in DefaultAppearance Casting GooString* to const char* was probably a reminder from a time where GooString layout had been under poppler control. Nowadays GooString derives from std::string and we must not rely upon the memory layout. The bug leads to DefaultAppearance::getFontName() always returning an invalid Object. The offending code is reachable via AnnotFreeText::generateFreeTextAppearance.