From d87030a35315dc36061d50cf4fbc2418f7432ab2 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Sun, 18 Jan 2009 14:43:03 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/GuiCharacter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiCharacter.cpp b/src/frontends/qt4/GuiCharacter.cpp index d3bbc9b517..28dfdb560c 100644 --- a/src/frontends/qt4/GuiCharacter.cpp +++ b/src/frontends/qt4/GuiCharacter.cpp @@ -253,8 +253,10 @@ static int findPos2nd(QList

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.