From 663029f55ad791b62120d59a63cfd297031a6bc5 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Thu, 2 Dec 2010 18:00:33 +0000 Subject: [PATCH] Fix bug #7130: Painting problem with closed Phantom Inset. The label is now updated when the type is changed, and the arrows are correctly painted. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36660 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetPhantom.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/insets/InsetPhantom.cpp b/src/insets/InsetPhantom.cpp index 9ec662fef1..64f7799831 100644 --- a/src/insets/InsetPhantom.cpp +++ b/src/insets/InsetPhantom.cpp @@ -154,7 +154,7 @@ void InsetPhantom::draw(PainterInfo & pi, int x, int y) const ColorCode const origcol = pi.base.font.color(); pi.base.font.setColor(Color_special); pi.base.font.setColor(origcol); - Dimension const dim = dimension(*pi.base.bv); + Dimension const dim = Inset::dimension(*pi.base.bv); if (params_.type == InsetPhantomParams::Phantom || params_.type == InsetPhantomParams::VPhantom) { @@ -261,6 +261,8 @@ void InsetPhantom::doDispatch(Cursor & cur, FuncRequest & cmd) case LFUN_INSET_MODIFY: cur.recordUndoInset(ATOMIC_UNDO, this); string2params(to_utf8(cmd.argument()), params_); + setButtonLabel(); + cur.forceBufferUpdate(); break; case LFUN_INSET_DIALOG_UPDATE: -- 2.39.2