]> git.lyx.org Git - lyx.git/blobdiff - src/FontIterator.cpp
Comment.
[lyx.git] / src / FontIterator.cpp
index e4c2406fa61680856f42e9f67ddbd2f6bb7fb661..e104ca414d31a276ca8c8dd16571d64a2bb2d4a4 100644 (file)
@@ -23,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())
 {}
@@ -45,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;