From 96c10746aa7e4f51bf21dfe988759cf77361ba0f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Vigna?= Date: Fri, 22 Feb 2002 14:51:53 +0000 Subject: [PATCH] Fixed by calling edit() before InsetButtonPress on locking the inset for HIGHLY editable insets (fix #250). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3584 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BufferView_pimpl.C | 4 +++- src/ChangeLog | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/BufferView_pimpl.C b/src/BufferView_pimpl.C index 9b15c675de..f5f1be2b2d 100644 --- a/src/BufferView_pimpl.C +++ b/src/BufferView_pimpl.C @@ -648,8 +648,10 @@ void BufferView::Pimpl::workAreaButtonPress(int xpos, int ypos, selection_possible = false; owner_->updateLayoutChoice(); owner_->message(inset->editMessage()); + // IMO the inset has to be first in edit-mode and then we send the + // button press. (Jug 20020222) + inset->edit(bv_); //, xpos, ypos, button); inset->insetButtonPress(bv_, xpos, ypos, button); - inset->edit(bv_, xpos, ypos, button); return; } diff --git a/src/ChangeLog b/src/ChangeLog index eda9f40668..143d6f23ed 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2002-02-22 Juergen Vigna + * BufferView_pimpl.C (workAreaButtonPress): call edit() before calling + insetButtonPress for HIGHLY_EDITABLE_INSETS seems saner (fix #250). + * text.C (leftMargin): don't add an indent for paragraphs inside tabular cells (fix #208). -- 2.39.2