mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 10:32:56 +01:00
GH #416: PDF::Page::createTextAnnotation bad comparison
This commit is contained in:
@@ -170,9 +170,9 @@ const Font& Document::loadFont(const std::string& name, const std::string& encod
|
||||
const Font& Document::font(const std::string& name, const std::string& encoding)
|
||||
{
|
||||
FontContainer::iterator it = _fonts.find(name);
|
||||
if (_fonts.end() == it) return loadFont(name, encoding);
|
||||
|
||||
throw IllegalStateException("Could not create font.");
|
||||
if (_fonts.end() != it) return it->second;
|
||||
|
||||
return loadFont(name, encoding);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user