From 5a02843ab20fd1524a12c8077f740d475c974a95 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Tue, 25 Aug 2009 00:04:47 +0000 Subject: [PATCH] Another fix for r30560. When setLayout() disappeared, also the call to setButtonLabel() disappeared. Now, when changing a Note into a Comment, the button label is no longer updated. This is because labelstring_ is not empty, so the line: return labelstring_.empty() ? getLayout().labelstring() : labelstring_; introduced in r30570 has no effect. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31225 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetNote.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/insets/InsetNote.cpp b/src/insets/InsetNote.cpp index 862f77f88e..89d789c04e 100644 --- a/src/insets/InsetNote.cpp +++ b/src/insets/InsetNote.cpp @@ -175,6 +175,7 @@ void InsetNote::doDispatch(Cursor & cur, FuncRequest & cmd) case LFUN_INSET_MODIFY: string2params(to_utf8(cmd.argument()), params_); + setButtonLabel(); break; case LFUN_INSET_DIALOG_UPDATE: