From 3772b9f6628ec367219e34332d8d1670e855ab4c Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Thu, 4 Jan 2007 14:28:22 +0000 Subject: [PATCH] reenable assertion git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16503 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/text3.C | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/text3.C b/src/text3.C index 008347710a..840ec68e1c 100644 --- a/src/text3.C +++ b/src/text3.C @@ -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 -- 2.39.2