]> git.lyx.org Git - features.git/commitdiff
Fixed by calling edit() before InsetButtonPress on locking the inset for
authorJürgen Vigna <jug@sad.it>
Fri, 22 Feb 2002 14:51:53 +0000 (14:51 +0000)
committerJürgen Vigna <jug@sad.it>
Fri, 22 Feb 2002 14:51:53 +0000 (14:51 +0000)
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
src/ChangeLog

index 9b15c675dea602fa908aed6815e5f1c5500ca6ac..f5f1be2b2dadde664b78e2cc4fe440d6d73f6fd8 100644 (file)
@@ -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;
        } 
        
index eda9f40668e4989fc220abb46d3207cad1bf4e57..143d6f23ed03672db3d2d3fe7f58b732f770c72e 100644 (file)
@@ -1,5 +1,8 @@
 2002-02-22  Juergen Vigna  <jug@sad.it>
 
+       * 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).