]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.cpp
adjust
[lyx.git] / src / Cursor.cpp
index 40d7c37e8331305f2312e92793098089ab00d50a..4e4770a4ca9aa32deeb814aef61a0dfcce37c5a8 100644 (file)
@@ -33,6 +33,7 @@
 #include "Paragraph.h"
 #include "paragraph_funcs.h"
 #include "ParIterator.h"
+#include "TextMetrics.h"
 
 #include "insets/InsetTabular.h"
 #include "insets/InsetText.h"
@@ -254,8 +255,8 @@ namespace {
                odocstringstream ods;
                ods << '\n';
                // only add blank line if we're not in an ERT or Listings inset
-               if (par.ownerCode() != Inset::ERT_CODE
-                   && par.ownerCode() != Inset::LISTINGS_CODE)
+               if (par.ownerCode() != ERT_CODE
+                   && par.ownerCode() != LISTINGS_CODE)
                        ods << '\n';
                return ods.str();
        }