]> git.lyx.org Git - lyx.git/blobdiff - src/bufferview_funcs.cpp
* LyXView:
[lyx.git] / src / bufferview_funcs.cpp
index cb5f38dec7b6b504be4d4aa8b3e499a7f5b6e295..fff484cd4893803c547323ae2e5687792d150940 100644 (file)
 
 #include <sstream>
 
-
-namespace lyx {
-
-using support::bformat;
-
 using std::istringstream;
 using std::ostringstream;
 using std::string;
@@ -47,6 +42,10 @@ using std::vector;
 using std::find;
 
 
+namespace lyx {
+
+using support::bformat;
+
 namespace bv_funcs {
 
 // Set data using font and toggle
@@ -176,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;
                }
@@ -218,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;