mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix page comparing in addJump
This commit is contained in:
2
cre.cpp
2
cre.cpp
@@ -99,7 +99,7 @@ static int getNumberOfPages(lua_State *L) {
|
||||
static int getCurrentPage(lua_State *L) {
|
||||
CreDocument *doc = (CreDocument*) luaL_checkudata(L, 1, "credocument");
|
||||
|
||||
lua_pushinteger(L, doc->text_view->getCurPage());
|
||||
lua_pushinteger(L, doc->text_view->getCurPage()+1);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user