fix warning when assertions are disabled

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10032 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2005-06-09 12:17:50 +00:00
parent a916592daf
commit a95ef64241
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-06-08 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* math_hullinset.C (label): avoid warning when assertions are
disabled.
2005-06-07 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* math_parser.h (latexkeys): new member requires

View File

@ -387,8 +387,7 @@ void MathHullInset::notifyCursorLeaves(LCursor & cur)
string MathHullInset::label(row_type row) const
{
row_type n = nrows();
BOOST_ASSERT(row < n);
BOOST_ASSERT(row < nrows());
return label_[row];
}