minor fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5688 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-11-20 18:57:49 +00:00
parent e6c532d775
commit 077819717e
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2002-11-20 John Levon <levon@movementarian.org>
* QMathDialog.C: don't pass empty commands to math
on menu tear-off
2002-11-20 John Levon <levon@movementarian.org>
* QLPopupMenu.C: only check .disabled() on Commands

View File

@ -271,6 +271,7 @@ void QMathDialog::insertSpace(int id)
case 4: str = "quad"; break;
case 5: str = "qquad"; break;
case 6: str = "!"; break;
default: return;
}
form_->insert(str);
}
@ -300,6 +301,7 @@ void QMathDialog::insertStyle(int id)
case 2: str = "textstyle"; break;
case 3: str = "scriptstyle"; break;
case 4: str = "scriptscriptstyle"; break;
default: return;
}
form_->insert(str);
}
@ -318,6 +320,7 @@ void QMathDialog::insertFont(int id)
case 7: str = "mathfrak"; break;
case 8: str = "mathcal"; break;
case 9: str = "textrm"; break;
default: return;
}
form_->insert(str);
}