reenable assertion

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16503 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2007-01-04 14:28:22 +00:00
parent 47fbb72398
commit 3772b9f662

View File

@ -144,9 +144,11 @@ namespace {
replaceSelection(cur);
if (sel.empty()) {
//const int old_pos = cur.pos();
#ifdef ENABLE_ASSERTIONS
const int old_pos = cur.pos();
#endif
cur.insert(new InsetMathHull(hullSimple));
//BOOST_ASSERT(old_pos == cur.pos());
BOOST_ASSERT(old_pos == cur.pos());
cur.nextInset()->edit(cur, true);
// don't do that also for LFUN_MATH_MODE
// unless you want end up with always changing