Exception refactoring

This commit is contained in:
Jakub Melka
2019-04-29 17:03:19 +02:00
parent 7e953b60e7
commit 11cb52921e
17 changed files with 96 additions and 59 deletions

View File

@@ -19,6 +19,7 @@
#include "pdfdocument.h"
#include "pdfparser.h"
#include "pdfnametounicode.h"
#include "pdfexception.h"
#include <ft2build.h>
#include <freetype/freetype.h>
@@ -562,7 +563,6 @@ PDFRealizedFontPointer PDFRealizedFont::createRealizedFont(PDFFontPointer font,
if (impl->m_systemFontData.isEmpty())
{
// TODO: Upravit vyjimky do separatniho souboru
throw PDFParserException(PDFTranslationContext::tr("Can't load system font '%1'.").arg(QString::fromLatin1(descriptor->fontName)));
}