From 84eec959c50e75cc68a410300eb9c16c6ca2efd7 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 29 Oct 2008 15:33:52 +0000 Subject: [PATCH] Revert 27186 which fixed an invalid bug. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27189 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathHull.cpp | 13 ------------- src/mathed/InsetMathHull.h | 2 -- 2 files changed, 15 deletions(-) diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index c6d64e81f9..cc4672587d 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -277,22 +277,10 @@ InsetMath::mode_type InsetMathHull::currentMode() const } -void InsetMathHull::leavePreview(Cursor & cur) const -{ - if (!use_preview_) - return; - use_preview_ = false; - Update::flags flags = cur.result().update(); - if (flags & Update::FitCursor) - cur.updateFlags(flags | Update::Force); -} - - bool InsetMathHull::idxFirst(Cursor & cur) const { cur.idx() = 0; cur.pos() = 0; - leavePreview(cur); return true; } @@ -301,7 +289,6 @@ bool InsetMathHull::idxLast(Cursor & cur) const { cur.idx() = nargs() - 1; cur.pos() = cur.lastpos(); - leavePreview(cur); return true; } diff --git a/src/mathed/InsetMathHull.h b/src/mathed/InsetMathHull.h index 821e269c4b..ce1e9e51dc 100644 --- a/src/mathed/InsetMathHull.h +++ b/src/mathed/InsetMathHull.h @@ -231,8 +231,6 @@ protected: void handleFont2(Cursor & cur, docstring const & arg); /// bool previewState(BufferView * bv) const; - /// - void leavePreview(Cursor & cur) const; }; -- 2.39.2