Author: vfr Date: Thu Dec 2 19:00:33 2010 New Revision: 36660 URL: http://www.lyx.org/trac/changeset/36660
Log: 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. Modified: lyx-devel/trunk/src/insets/InsetPhantom.cpp Modified: lyx-devel/trunk/src/insets/InsetPhantom.cpp ============================================================================== --- lyx-devel/trunk/src/insets/InsetPhantom.cpp Thu Dec 2 17:50:12 2010 (r36659) +++ lyx-devel/trunk/src/insets/InsetPhantom.cpp Thu Dec 2 19:00:33 2010 (r36660) @@ -154,7 +154,7 @@ 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 @@ case LFUN_INSET_MODIFY: cur.recordUndoInset(ATOMIC_UNDO, this); string2params(to_utf8(cmd.argument()), params_); + setButtonLabel(); + cur.forceBufferUpdate(); break; case LFUN_INSET_DIALOG_UPDATE: