]> git.lyx.org Git - features.git/commitdiff
Tentatively fix http://bugzilla.lyx.org/show_bug.cgi?id=4873
authorAbdelrazak Younes <younes@lyx.org>
Thu, 7 Aug 2008 07:45:52 +0000 (07:45 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 7 Aug 2008 07:45:52 +0000 (07:45 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26090 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetCollapsable.cpp

index 98e5d6c735b4543b5832100585e2b3c8c6baeb7e..b31beff245beaa1ef2c5db5e60ce94baf7e4e177 100644 (file)
@@ -529,7 +529,8 @@ void InsetCollapsable::doDispatch(Cursor & cur, FuncRequest & cmd)
                break;
 
        case LFUN_MOUSE_RELEASE:
-               if (geometry() == NoButton || !hitButton(cmd)) {
+               if (geometry() == NoButton 
+                       || (geometry() != ButtonOnly && !hitButton(cmd))) {
                        // The mouse click has to be within the inset!
                        InsetText::doDispatch(cur, cmd);
                        break;