suppress writeing of \label if \nonumber is given

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5539 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-10-29 13:22:43 +00:00
parent f46dfd626e
commit 3f190c2a2a

View File

@ -624,7 +624,7 @@ string MathHullInset::eolString(row_type row, bool fragile) const
{
string res;
if (numberedType()) {
if (!label_[row].empty())
if (!label_[row].empty() && !nonum_[row])
res += "\\label{" + label_[row] + "}";
if (nonum_[row])
res += "\\nonumber ";