]> git.lyx.org Git - lyx.git/blobdiff - src/FontList.cpp
Win installer: translate 2 installer sections
[lyx.git] / src / FontList.cpp
index 1c763e161e589ed2e79f1df1a0d59b408803b531..e5a86dbb29249b9fe81d2306d47f9bf5137098a8 100644 (file)
@@ -20,9 +20,7 @@
 
 #include "FontList.h"
 
-#include <boost/next_prior.hpp>
-
-#include <algorithm>
+#include "support/lyxalgo.h"
 
 using namespace std;
 
@@ -72,7 +70,7 @@ void FontList::erase(pos_type pos)
        iterator beg = list_.begin();
        if (it != list_.end() && it->pos() == pos
                && (pos == 0 
-                       || (it != list_.begin() && boost::prior(it)->pos() == pos - 1))) {
+                       || (it != list_.begin() && prev(it, 1)->pos() == pos - 1))) {
 
                // If it is a multi-character font
                // entry, we just make it smaller