>>>>> "Peter" == Peter Kümmel <[EMAIL PROTECTED]> writes:
Peter> I've tried it again, and yes it only crashes with your patch:
You are definitely right. Thanks for being persistent, I was so sure
it was not possible %-|
Updated patch follows.
JMarc
Index: src/text2.C
===================================================================
--- src/text2.C (revision 14670)
+++ src/text2.C (working copy)
@@ -385,6 +385,10 @@ bool changeDepthAllowed(LyXText::DEPTH_C
bool LyXText::changeDepthAllowed(LCursor & cur, DEPTH_CHANGE type) const
{
BOOST_ASSERT(this == cur.text());
+ // this happens when selecting several cells in tabular (bug 2630)
+ if (cur.selBegin().idx() != cur.selEnd().idx())
+ return false;
+
pit_type const beg = cur.selBegin().pit();
pit_type const end = cur.selEnd().pit() + 1;
int max_depth = (beg != 0 ? pars_[beg - 1].getMaxDepthAfter() : 0);