fix page comparing in addJump

This commit is contained in:
Qingping Hou
2012-04-19 00:04:41 +08:00
parent 236e9fab3f
commit 35e4ceaf57
3 changed files with 4 additions and 4 deletions

View File

@@ -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;
}