]> git.lyx.org Git - lyx.git/blobdiff - src/rowpainter.C
ws changes only
[lyx.git] / src / rowpainter.C
index 0410a79437fcbb407ab9ebbb616cdc9021cfa9f9..ac1fadd6a0416ad30f1689104b6f3b6c391d9151 100644 (file)
@@ -24,6 +24,7 @@
 #include "lyxrow.h"
 #include "lyxrow_funcs.h"
 #include "metricsinfo.h"
+#include "paragraph.h"
 #include "paragraph_funcs.h"
 #include "ParagraphParameters.h"
 #include "vspace.h"
@@ -36,8 +37,9 @@
 #include "support/textutils.h"
 
 
-using std::max;
 using lyx::pos_type;
+using std::max;
+using std::string;
 
 extern int PAPER_MARGIN;
 extern int CHANGEBAR_MARGIN;
@@ -336,7 +338,7 @@ void RowPainter::paintFromPos(pos_type & vpos)
 
        char const c = pit_->getChar(pos);
 
-       if (IsInsetChar(c)) {
+       if (c == Paragraph::META_INSET) {
                paintInset(pos);
                ++vpos;
                paintForeignMark(orig_x, orig_font);