X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FFontList.cpp;h=e5a86dbb29249b9fe81d2306d47f9bf5137098a8;hb=af16acb0b4c5379ac87fe0c9fae384af1babdc3a;hp=1c763e161e589ed2e79f1df1a0d59b408803b531;hpb=3e9e6e344ace9160f93fd882bf2243d24a069fa5;p=lyx.git diff --git a/src/FontList.cpp b/src/FontList.cpp index 1c763e161e..e5a86dbb29 100644 --- a/src/FontList.cpp +++ b/src/FontList.cpp @@ -20,9 +20,7 @@ #include "FontList.h" -#include - -#include +#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