Make the Apply button of the GuiCharacter dialog buffer dependent.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28240 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-01-18 14:43:03 +00:00
parent 2afc45c538
commit d87030a353

View File

@ -253,8 +253,10 @@ static int findPos2nd(QList<P> const & vec, B const & val)
void GuiCharacter::updateContents()
{
if (!autoapplyCB->isChecked())
if (!autoapplyCB->isChecked()) {
bc().setValid(true);
return;
}
if (bufferview()->cursor().selection()) {
//FIXME: it would be better to check if each font attribute is constant
// for the selection range.