URL: 
http://www.lyx.org/trac/file/lyx-devel/branches/BRANCH_1_6_X/src/BufferView.cpp?rev=28206
==============================================================================
--- lyx-devel/branches/BRANCH_1_6_X/src/BufferView.cpp (original)
+++ lyx-devel/branches/BRANCH_1_6_X/src/BufferView.cpp Sat Jan 17 14:54:26 2009
@@ -884,6 +884,14 @@
                flag.setEnabled(true);
                break;
+ case LFUN_COPY_LABEL_AS_REF: {
+               // if there is an inset at cursor, see whether it
+               // handles the lfun, other start from scratch
+               Inset * inset = cur.nextInset();
+               if (!inset || !inset->getStatus(cur, cmd, flag))
+                       flag = lyx::getStatus(cmd);
+               break;
+       }

Stefan, could you explain why you did this in this way ? In my experience, whenever inset turns out to be NULL, LyX crashes due to an infinite recursion loop.

Wouldn't it be enough to return false when inset is NULL ?

Vincent

Reply via email to