]> git.lyx.org Git - lyx.git/blobdiff - src/dociterator.C
reduce number of calls to LyXText::getFont
[lyx.git] / src / dociterator.C
index 74c5aa38a6b510c4f547c3a62e00fe3040151509..53a0d2ebc77b9c749c1869c06d1c9aa5f5d2a213 100644 (file)
@@ -22,6 +22,7 @@
 #include "mathed/math_inset.h"
 
 #include <boost/assert.hpp>
+#include <boost/current_function.hpp>
 
 using std::endl;
 
@@ -138,7 +139,7 @@ LyXText const * DocIterator::text() const
 
 Paragraph & DocIterator::paragraph()
 {
-       if (!inTexted()) 
+       if (!inTexted())
                lyxerr << *this << endl;
        BOOST_ASSERT(inTexted());
        return top().paragraph();
@@ -386,7 +387,7 @@ void DocIterator::forwardPar()
 #if 0
        DocIterator cmp(*this);
 #endif
-       
+
        while (!empty() && (!inTexted() || pos() != 0)) {
                if (inTexted()) {
                        pos_type const lastp = lastpos();