]> git.lyx.org Git - features.git/commitdiff
Fix bug #7130: Painting problem with closed Phantom Inset. The label is now updated...
authorVincent van Ravesteijn <vfr@lyx.org>
Thu, 2 Dec 2010 18:00:33 +0000 (18:00 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Thu, 2 Dec 2010 18:00:33 +0000 (18:00 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36660 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetPhantom.cpp

index 9ec662fef14729cb149669dee07db263a902ce46..64f7799831f4fd77b8c6e23aacca806b4a69843c 100644 (file)
@@ -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: