]> git.lyx.org Git - lyx.git/blobdiff - src/FontIterator.cpp
Comment.
[lyx.git] / src / FontIterator.cpp
index 116523f430e50e4e1da5c4648a0868a02d5d1bc5..e104ca414d31a276ca8c8dd16571d64a2bb2d4a4 100644 (file)
@@ -9,7 +9,6 @@
  *
  */
 
-
 #include <config.h>
 
 #include "FontIterator.h"
@@ -22,9 +21,9 @@ namespace lyx {
 
 
 FontIterator::FontIterator(TextMetrics const & tm,
-               Paragraph const & par, pos_type pos)
-       : tm_(tm), par_(par), pos_(pos),
-         font_(tm.getDisplayFont(par, pos)),
+               Paragraph const & par, pit_type pit, pos_type pos)
+       : tm_(tm), par_(par), pit_(pit), pos_(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(par_, pos_);
+               font_ = tm_.displayFont(pit_, pos_);
                endspan_ = par_.fontSpan(pos_).last;
        }
        return *this;