diff options
author | Luke Dixon <6b8b4567@gmail.com> | 2011-02-15 22:46:54 +0000 |
---|---|---|
committer | Jonas Finnemann Jensen <jopsen@gmail.com> | 2011-02-16 08:39:11 +0100 |
commit | 396d679b60fe2c996ff040218814f54684703313 (patch) | |
tree | 6568944c7739253d41556f31cbc65923ebb4f3ee /starmath/source/cursor.cxx | |
parent | Translate some German comments. (diff) | |
download | core-396d679b60fe2c996ff040218814f54684703313.tar.gz core-396d679b60fe2c996ff040218814f54684703313.zip |
Make Undo & Redo work with the visual formula editor
and update todo list.
Diffstat (limited to 'starmath/source/cursor.cxx')
-rw-r--r-- | starmath/source/cursor.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx index 8685ee57571c..e9eb20048869 100644 --- a/starmath/source/cursor.cxx +++ b/starmath/source/cursor.cxx @@ -1461,7 +1461,8 @@ void SmCursor::EndEdit(){ SmNodeToTextVisitor(pTree, formula); //pTree->CreateTextFromNode(formula); pDocShell->aText = formula; - pDocShell->GetEditEngine().SetText(formula); + pDocShell->GetEditEngine().QuickInsertText( formula, ESelection( 0, 0, EE_PARA_ALL, EE_PARA_ALL ) ); + pDocShell->GetEditEngine().QuickFormatDoc(); } void SmCursor::RequestRepaint(){ |