Skip to content

Commit

Permalink
Fix a regression in the previous release that caused conversion to PD…
Browse files Browse the repository at this point in the history
…F to fail
  • Loading branch information
kovidgoyal committed Jul 17, 2015
1 parent 99dd85d commit 9017475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/calibre/ebooks/pdf/render/qt_hack.cpp
Expand Up @@ -60,7 +60,7 @@ PyObject* get_sfnt_table(const QTextItem &text_item, const char* tag_name) {
QTextItemInt ti = static_cast<const QTextItemInt &>(text_item);
const quint32 *tag = reinterpret_cast<const quint32 *>(tag_name);
const QByteArray table(ti.fontEngine->getSfntTable(qToBigEndian(*tag)));
return Py_BuildValue("s#", table.constData());
return Py_BuildValue("s#", table.constData(), table.size());
}

PyObject* get_glyph_map(const QTextItem &text_item) {
Expand Down

0 comments on commit 9017475

Please sign in to comment.