Skip to content

Commit 9e3eb65

Browse files
innirPhilip Rinn
andauthored
[Gtk] Fix conversion to c-string (fixes #723) (#724)
Co-authored-by: Philip Rinn <rinni@debian.org>
1 parent 093e20c commit 9e3eb65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gtk/src/hocr/HOCRPdfExporter.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ HOCRPoDoFoPdfPrinter* HOCRPoDoFoPdfPrinter::create(const std::string& filename,
446446
#if PODOFO_VERSION >= PODOFO_MAKE_VERSION(0, 10, 0)
447447
defaultPdfFont = document->GetFonts().SearchFont(defaultFont.raw());
448448
#else
449-
defaultPdfFont = document->CreateFontSubset(defaultFont.raw(), false, false, false, pdfFontEncoding);
449+
defaultPdfFont = document->CreateFontSubset(defaultFont.raw().c_str(), false, false, false, pdfFontEncoding);
450450
#endif
451451
} catch (PoDoFo::PdfError&) {
452452
}
@@ -660,7 +660,7 @@ PoDoFo::PdfFont* HOCRPoDoFoPdfPrinter::getFont(Glib::ustring family, bool bold,
660660
params.Style = style;
661661
font = m_document->GetFonts().SearchFont(family.raw(), params);
662662
#else
663-
font = m_document->CreateFontSubset(family.raw(), bold, italic, false, m_pdfFontEncoding);
663+
font = m_document->CreateFontSubset(family.raw().c_str(), bold, italic, false, m_pdfFontEncoding);
664664
#endif
665665
it = m_fontCache.insert(std::make_pair(key, font)).first;
666666
} catch (PoDoFo::PdfError& /*err*/) {

0 commit comments

Comments
 (0)