]> git.lyx.org Git - lyx.git/blobdiff - src/bufferview_funcs.cpp
* LyXView:
[lyx.git] / src / bufferview_funcs.cpp
index ea242e1be8561fd19bbb150e9083860c8feea004..fff484cd4893803c547323ae2e5687792d150940 100644 (file)
@@ -16,7 +16,6 @@
 
 #include "bufferview_funcs.h"
 
-#include "Author.h"
 #include "Buffer.h"
 #include "BufferParams.h"
 #include "BufferView.h"
 
 #include <sstream>
 
-
-namespace lyx {
-
-using support::bformat;
-
 using std::istringstream;
 using std::ostringstream;
 using std::string;
@@ -48,6 +42,10 @@ using std::vector;
 using std::find;
 
 
+namespace lyx {
+
+using support::bformat;
+
 namespace bv_funcs {
 
 // Set data using font and toggle
@@ -177,7 +175,7 @@ Point coordOffset(BufferView const & bv, DocIterator const & dit,
                // of xx:yy
                if (sl.text()) {
                        bool boundary_i = boundary && i + 1 == dit.depth();
-                       bool rtl = sl.text()->isRTL(*bv.buffer(), sl, boundary_i);
+                       bool rtl = sl.text()->isRTL(bv.buffer(), sl, boundary_i);
                        if (rtl)
                                x -= lastw;
                }
@@ -219,7 +217,7 @@ Point coordOffset(BufferView const & bv, DocIterator const & dit,
        // In the RTL case place the nested inset at the left of the cursor in 
        // the outer paragraph
        bool boundary_1 = boundary && 1 == dit.depth();
-       bool rtl = dit.bottom().text()->isRTL(*bv.buffer(), dit.bottom(), boundary_1);
+       bool rtl = dit.bottom().text()->isRTL(bv.buffer(), dit.bottom(), boundary_1);
        if (rtl)
                x -= lastw;