]> git.lyx.org Git - lyx.git/commitdiff
reenable assertion
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 4 Jan 2007 14:28:22 +0000 (14:28 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 4 Jan 2007 14:28:22 +0000 (14:28 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16503 a592a061-630c-0410-9148-cb99ea01b6c8

src/text3.C

index 008347710ae4693262898919b6f06265a506eb8c..840ec68e1caabfc67a5d8bbe4b08b4a79fd3eb1c 100644 (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