From: Jürgen Vigna Date: Fri, 22 Feb 2002 14:51:53 +0000 (+0000) Subject: Fixed by calling edit() before InsetButtonPress on locking the inset for X-Git-Tag: 1.6.10~19812 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=96c10746aa7e4f51bf21dfe988759cf77361ba0f;p=features.git 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 --- 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).