mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
Merge pull request #666 from tigran123/crehead
Enable chapter marks in crengine header.
This commit is contained in:
commit
ea2bae5531
1
cre.cpp
1
cre.cpp
@ -66,6 +66,7 @@ static int openDocument(lua_State *L) {
|
|||||||
doc->text_view->setViewMode(view_mode, -1);
|
doc->text_view->setViewMode(view_mode, -1);
|
||||||
doc->text_view->Resize(width, height);
|
doc->text_view->Resize(width, height);
|
||||||
doc->text_view->LoadDocument(file_name);
|
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->dom_doc = doc->text_view->getDocument();
|
||||||
doc->text_view->Render();
|
doc->text_view->Render();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user