Author: younes
Date: Sun Mar 13 17:38:36 2011
New Revision: 37915
URL: http://www.lyx.org/trac/changeset/37915
Log:
TextMetrics::editXY(): don't continue executing code when asserting.
Modified:
lyx-devel/trunk/src/TextMetrics.cpp
Modified: lyx-devel/trunk/src/TextMetrics.cpp
==============================================================================
--- lyx-devel/trunk/src/TextMetrics.cpp Sun Mar 13 17:26:57 2011 (r37914)
+++ lyx-devel/trunk/src/TextMetrics.cpp Sun Mar 13 17:38:36 2011 (r37915)
@@ -1495,7 +1495,7 @@
// This should be just before or just behind the
// cursor position set above.
LASSERT(inset == inset_before
- || inset == pars[pit].getInset(pos), /**/);
+ || inset == pars[pit].getInset(pos), return 0);
// Make sure the cursor points to the position before
// this inset.