]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.cpp
* do not ignore "requires" field in MathMacro
[lyx.git] / src / Cursor.cpp
index 74a0cd2e4937317ac98b204cffc7ef0693109afe..2589298f17018f648bbdbf4805566bb8263311fa 100644 (file)
@@ -28,7 +28,7 @@
 #include "LyXFunc.h" // only for setMessage()
 #include "LyXRC.h"
 #include "Row.h"
-#include "LyXText.h"
+#include "Text.h"
 #include "Paragraph.h"
 #include "paragraph_funcs.h"
 #include "ParIterator.h"
@@ -1233,7 +1233,7 @@ Encoding const * Cursor::getEncoding() const
                if (operator[](s).text())
                        break;
        CursorSlice const & sl = operator[](s);
-       LyXText const & text = *sl.text();
+       Text const & text = *sl.text();
        Font font = text.getPar(sl.pit()).getFont(
                bv().buffer()->params(), sl.pos(), outerFont(sl.pit(), text.paragraphs()));
        return font.language()->encoding();
@@ -1274,7 +1274,7 @@ Font Cursor::getFont() const
                if (operator[](s).text())
                        break;
        CursorSlice const & sl = operator[](s);
-       LyXText const & text = *sl.text();
+       Text const & text = *sl.text();
        Font font = text.getPar(sl.pit()).getFont(
                bv().buffer()->params(),
                sl.pos(),
@@ -1329,7 +1329,7 @@ void Cursor::fixIfBroken()
 
 bool Cursor::isRTL() const
 {
-       return top().paragraph().isRightToLeftPar(bv().buffer()->params());
+       return innerParagraph().isRightToLeftPar(bv().buffer()->params());
 }