X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FFontIterator.cpp;h=e104ca414d31a276ca8c8dd16571d64a2bb2d4a4;hb=9337d73f1f9a6d4dae2e239e9f679a7452660c40;hp=c4f553162c7aa9f1e91f209bb708a1229dc7973b;hpb=2ea432bab156751d40f2909f73db857942cfa143;p=lyx.git diff --git a/src/FontIterator.cpp b/src/FontIterator.cpp index c4f553162c..e104ca414d 100644 --- a/src/FontIterator.cpp +++ b/src/FontIterator.cpp @@ -9,7 +9,6 @@ * */ - #include #include "FontIterator.h" @@ -24,7 +23,7 @@ namespace lyx { FontIterator::FontIterator(TextMetrics const & tm, Paragraph const & par, pit_type pit, pos_type pos) : tm_(tm), par_(par), pit_(pit), pos_(pos), - font_(tm.getDisplayFont(pit, pos)), + font_(tm.displayFont(pit, pos)), endspan_(par.fontSpan(pos).last), bodypos_(par.beginOfBody()) {} @@ -46,7 +45,7 @@ FontIterator & FontIterator::operator++() { ++pos_; if (pos_ > endspan_ || pos_ == bodypos_) { - font_ = tm_.getDisplayFont(pit_, pos_); + font_ = tm_.displayFont(pit_, pos_); endspan_ = par_.fontSpan(pos_).last; } return *this;