]> git.lyx.org Git - features.git/commitdiff
Fix macro redrawing bug. Thanks, Juergen!
authorAndré Pönitz <poenitz@gmx.net>
Fri, 12 Oct 2001 12:58:50 +0000 (12:58 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Fri, 12 Oct 2001 12:58:50 +0000 (12:58 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2868 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/formulamacro.C

index d98c7b05309aad3d324d927eccb5b3086a491e76..d8b620d87d9eb0c75520380924ac2f957f9c0a89 100644 (file)
@@ -36,6 +36,7 @@
 #include "support/LOstream.h"
 #include "debug.h"
 #include "lyxlex.h"
+#include "lyxtext.h"
 #include "lyxfont.h"
 
 using std::ostream;
@@ -155,8 +156,14 @@ InsetFormulaMacro::localDispatch(BufferView * bv,
                        break;
                }
                
-               default:
+               default: {
                        result = InsetFormulaBase::localDispatch(bv, action, arg);
+                       // force redraw if anything happened
+                       if (result != UNDISPATCHED) {
+                               bv->text->status(bv, LyXText::NEED_MORE_REFRESH);
+                               bv->updateInset(this, false);
+                       }
+               }
        }
        return result;
 }