]> git.lyx.org Git - lyx.git/blobdiff - src/Text3.cpp
fix #4758
[lyx.git] / src / Text3.cpp
index b8d2dd398815b61b504a40bdb59b30daf20d6cf8..c6674850cfb460b69ba3eaadcca43b8fc13fd5b3 100644 (file)
@@ -328,8 +328,8 @@ static void outline(OutlineOp mode, Cursor & cur)
                                }
                        }
                        // One such was found:
-                       pit_type newpit = std::distance(bgn, dest);
-                       pit_type const len = std::distance(start, finish);
+                       pit_type newpit = distance(bgn, dest);
+                       pit_type const len = distance(start, finish);
                        buf.undo().recordUndo(cur, ATOMIC_UNDO, pit, newpit - 1);
                        pars.insert(dest, start, finish);
                        start = boost::next(bgn, pit);