diff options
Diffstat (limited to 'starmath')
-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 b7f518f86a29..c2d7f4f8498e 100644 --- a/starmath/source/cursor.cxx +++ b/starmath/source/cursor.cxx @@ -977,7 +977,8 @@ void SmCursor::InsertFraction() { PatchLineList(pLineList, it); //Finish editing - FinishEdit(pLineList, pLineParent, nParentIndex, SmCaretPos(pDenom, 1)); + SmNode *pSelectedNode = bEmptyFraction ? pNum : pDenom; + FinishEdit(pLineList, pLineParent, nParentIndex, SmCaretPos(pSelectedNode, 1)); } void SmCursor::InsertText(XubString aString){ |