diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2011-12-02 22:07:34 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2011-12-04 19:24:57 +0400 |
commit | 5a227745095d3a700ca01e062264aa5afd080c8a (patch) | |
tree | 7875bc687af5f8072a16ed638b530b72578878b0 /starmath | |
parent | 8fb78b12219fb0b9c949f8c5bda558f0bd20cc9d (diff) |
visual formula editor: place cursor on numerator when creating empty fraction
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){ |