]> git.lyx.org Git - lyx.git/blobdiff - src/Text.cpp
Fix scons and a file inclusion problem in ControlCommand.h
[lyx.git] / src / Text.cpp
index 9fde15b3a2429dd00f17f65497d743693b14565f..fc99e1336ea205e784685372f505e799267e48df 100644 (file)
@@ -68,6 +68,7 @@
 #include "support/convert.h"
 
 #include <boost/current_function.hpp>
+#include <boost/next_prior.hpp>
 
 #include <sstream>
 
@@ -521,7 +522,7 @@ void Text::insertChar(Cursor & cur, char_type c)
                        // adjacent character whose direction is the paragraph's
                        // direction; don't touch other properties of the font
                        Language const * lang = 
-                               (pre_space_rtl == par.isRightToLeftPar(buffer.params())) ?
+                               (pre_space_rtl == par.isRTL(buffer.params())) ?
                                pre_space_font.language() : post_space_font.language();
 
                        Font space_font = tm.getDisplayFont(cur.pit(), cur.pos() - 1);
@@ -1141,7 +1142,7 @@ bool Text::dissolveInset(Cursor & cur) {
                                        b.getLanguage());
                }
 
-               pasteParagraphList(cur, plist, b.params().getTextClass_ptr(),
+               pasteParagraphList(cur, plist, b.params().getTextClassPtr(),
                                   b.errorList("Paste"));
                // restore position
                cur.pit() = std::min(cur.lastpit(), spit);