summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/app/inputhdl.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index 9fa2e0f2161d..436991f49cc0 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -2251,9 +2251,9 @@ void ScInputHandler::UpdateFormulaMode()
SfxApplication* pSfxApp = SFX_APP();
if ( pEngine->GetParagraphCount() == 1 &&
- ( pEngine->GetText(0).GetChar(0) == '=' ||
- pEngine->GetText(0).GetChar(0) == '+' ||
- pEngine->GetText(0).GetChar(0) == '-' ) &&
+ ( pEngine->GetText(0)[0] == '=' ||
+ pEngine->GetText(0)[0] == '+' ||
+ pEngine->GetText(0)[0] == '-' ) &&
!bProtected )
{
if (!bFormulaMode)
@@ -2408,9 +2408,9 @@ void ScInputHandler::SetMode( ScInputMode eNewMode )
}
}
- sal_Int32 nPara = pEngine->GetParagraphCount()-1;
- xub_StrLen nLen = pEngine->GetText(nPara).Len();
- sal_uInt16 nCount = pEngine->GetViewCount();
+ sal_Int32 nPara = pEngine->GetParagraphCount()-1;
+ sal_Int32 nLen = pEngine->GetText(nPara).getLength();
+ sal_uInt16 nCount = pEngine->GetViewCount();
for (sal_uInt16 i=0; i<nCount; i++)
{