2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00

Enable chapter marks in crengine header.

This commit is contained in:
Tigran Aivazian 2012-12-15 15:21:50 +00:00
parent fe1aa53384
commit 7e60487b99

View File

@ -66,6 +66,7 @@ static int openDocument(lua_State *L) {
doc->text_view->setViewMode(view_mode, -1);
doc->text_view->Resize(width, height);
doc->text_view->LoadDocument(file_name);
doc->text_view->setPageHeaderInfo(PGHDR_AUTHOR|PGHDR_TITLE|PGHDR_PAGE_NUMBER|PGHDR_PAGE_COUNT|PGHDR_CHAPTER_MARKS|PGHDR_CLOCK);
doc->dom_doc = doc->text_view->getDocument();
doc->text_view->Render();