X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCursor.cpp;h=e08793c393f2ed8c88c2ffb615bfbd95094189d3;hb=225c1dbe55635a97b183909ea7194b8d92051378;hp=d504670fa7fedb726d98df8b6ad5f57fc7bf0ac6;hpb=ae7bcd331274980ef631d8f00e9270798147c1c6;p=lyx.git diff --git a/src/Cursor.cpp b/src/Cursor.cpp index d504670fa7..e08793c393 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -154,7 +154,7 @@ bool bruteFind(Cursor & cursor, else ++et.pit(); - double best_dist = numeric_limits::max();; + double best_dist = numeric_limits::max(); DocIterator best_cursor = et; for ( ; it != et; it.forwardPos(true)) {