diff --git a/cre.cpp b/cre.cpp index 0bf1ceb0c..8df2584e7 100644 --- a/cre.cpp +++ b/cre.cpp @@ -623,7 +623,7 @@ static const struct luaL_Reg credocument_meth[] = { {"getPosFromXPointer", getPosFromXPointer}, {"getCurrentPos", getCurrentPos}, {"getCurrentPercent", getCurrentPercent}, - {"getCurrentXPointer", getCurrentXPointer}, + {"getXPointer", getXPointer}, {"getFullHeight", getFullHeight}, {"getFontSize", getFontSize}, {"getFontFace", getFontFace},