[EMAIL PROTECTED] wrote:
Author: spitz
Date: Tue Mar 25 06:33:39 2008
New Revision: 23939

URL: http://www.lyx.org/trac/changeset/23939
Log:
* src/insets/InsetCaption.cpp:
        - better fix for the inset-toggle crash resovled in rev. 23929.
          Now, collapsing works again as in 1.5.

Modified:
    lyx-devel/trunk/src/insets/InsetCaption.cpp

Modified: lyx-devel/trunk/src/insets/InsetCaption.cpp
URL: 
http://www.lyx.org/trac/file/lyx-devel/trunk/src/insets/InsetCaption.cpp?rev=23939
==============================================================================
--- lyx-devel/trunk/src/insets/InsetCaption.cpp (original)
+++ lyx-devel/trunk/src/insets/InsetCaption.cpp Tue Mar 25 06:33:39 2008
@@ -194,13 +194,17 @@
case LFUN_BREAK_PARAGRAPH:
        case LFUN_BREAK_PARAGRAPH_SKIP:
-       case LFUN_INSET_TOGGLE:
                status.enabled(false);
                return true;
case LFUN_OPTIONAL_INSERT:
                status.enabled(cur.paragraph().insetList().find(OPTARG_CODE) == 
-1);
                return true;
+
+       case LFUN_INSET_TOGGLE:
+               // pass back to owner
+               cur.undispatched();
+               return false;
Are you sure you got this in the right place? This looks like it should be in some dispatch() routine, not in getStatus().

rh

        default:
                return InsetText::getStatus(cur, cmd, status);


_______________________________________________
Cvslog mailing list
[EMAIL PROTECTED]
http://www.lyx.org/mailman/listinfo/cvslog

Reply via email to