diff options
Diffstat (limited to 'starmath/source/view.cxx')
-rw-r--r-- | starmath/source/view.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index 2c12b3c4cdef..a380d5871ab6 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -392,11 +392,12 @@ void SmGraphicWindow::Paint(const Rectangle&) const SmEditWindow *pEdit = pViewShell->GetEditWindow(); if (pEdit) { // get new position for formula-cursor (for possible altered formula) - sal_uInt16 nRow, nCol; + sal_Int32 nRow; + sal_uInt16 nCol; SmGetLeftSelectionPart(pEdit->GetSelection(), nRow, nCol); nRow++; nCol++; - const SmNode *pFound = SetCursorPos(nRow, nCol); + const SmNode *pFound = SetCursorPos(static_cast<sal_uInt16>(nRow), nCol); SmModule *pp = SM_MOD(); if (pFound && pp->GetConfig()->IsShowFormulaCursor()) |