X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBidi.C;h=db4775449bd0a7f6952f5032ea55e13f726c25ee;hb=55ded55ccfede99816c92de009d82c245ab69514;hp=52ae106e7e2d186712c1eb83a47b4bbbb672969a;hpb=5be51b4fb77a6b13170d180f32d69745714b0b8e;p=lyx.git diff --git a/src/Bidi.C b/src/Bidi.C index 52ae106e7e..db4775449b 100644 --- a/src/Bidi.C +++ b/src/Bidi.C @@ -17,7 +17,6 @@ #include "lyxrc.h" #include "paragraph.h" -#include "insets/updatableinset.h" using lyx::pos_type; @@ -52,7 +51,7 @@ bool Bidi::same_direction() const void Bidi::computeTables(Paragraph const & par, - Buffer const & buf, Row & row) + Buffer const & buf, Row const & row) { same_direction_ = true; if (!lyxrc.rtl_support) { @@ -60,9 +59,7 @@ void Bidi::computeTables(Paragraph const & par, return; } - InsetOld * inset = par.inInset(); - if (inset && inset->owner() && - inset->owner()->lyxCode() == InsetOld::ERT_CODE) { + if (par.ownerCode() == InsetBase::ERT_CODE) { start_ = -1; return; } @@ -94,7 +91,7 @@ void Bidi::computeTables(Paragraph const & par, int lev = 0; bool rtl = false; bool rtl0 = false; - pos_type const body_pos = par.beginningOfBody(); + pos_type const body_pos = par.beginOfBody(); for (pos_type lpos = start_; lpos <= end_; ++lpos) { bool is_space = par.isLineSeparator(lpos);