]> git.lyx.org Git - lyx.git/blobdiff - src/ParagraphMetrics.cpp
Move <QTimer> from TocWidget.h
[lyx.git] / src / ParagraphMetrics.cpp
index 1d3ce0db5cfe196c718e632629dffa21f7276265..72b212b10cde88f924d0da585396452f8d2d6e2d 100644 (file)
@@ -31,7 +31,7 @@
 #include "LyXRC.h"
 #include "Row.h"
 #include "OutputParams.h"
-#include "sgml.h"
+#include "xml.h"
 #include "TextClass.h"
 #include "TexRow.h"
 
@@ -88,25 +88,6 @@ void ParagraphMetrics::setPosition(int position)
 }
 
 
-Row & ParagraphMetrics::getRow(pos_type pos, bool boundary)
-{
-       LBUFERR(!rows().empty());
-
-       // If boundary is set we should return the row on which
-       // the character before is inside.
-       if (pos > 0 && boundary)
-               --pos;
-
-       RowList::iterator rit = rows_.end();
-       RowList::iterator const begin = rows_.begin();
-
-       for (--rit; rit != begin && rit->pos() > pos; --rit)
-               ;
-
-       return *rit;
-}
-
-
 Row const & ParagraphMetrics::getRow(pos_type pos, bool boundary) const
 {
        LBUFERR(!rows().empty());