]> git.lyx.org Git - lyx.git/blobdiff - src/Bidi.C
fix two crashes related to dEPM. Some crashes remain
[lyx.git] / src / Bidi.C
index ce9b4651d5f4355d6f597908d8a2ad3a457edaa8..6899c0ab73786aa6a5b2e5dcca6af4b87ef77cc8 100644 (file)
@@ -8,6 +8,7 @@
  * Full author contact details are available in file CREDITS.
  */
 
+#include <config.h>
 
 #include "Bidi.h"
 #include "buffer.h"
@@ -17,7 +18,6 @@
 #include "lyxrc.h"
 #include "paragraph.h"
 
-#include "insets/updatableinset.h"
 
 using lyx::pos_type;
 
@@ -60,9 +60,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;
        }