summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2011-12-02 22:07:34 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2011-12-04 19:24:57 +0400
commit5a227745095d3a700ca01e062264aa5afd080c8a (patch)
tree7875bc687af5f8072a16ed638b530b72578878b0 /starmath
parent8fb78b12219fb0b9c949f8c5bda558f0bd20cc9d (diff)
visual formula editor: place cursor on numerator when creating empty fraction
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/cursor.cxx3
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){