summaryrefslogtreecommitdiffstats
path: root/editeng
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-02-05 14:34:00 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-02-05 14:35:13 -0500
commitf504768a96601622f089dc6ee7620df1d014c6fb (patch)
tree4ae5d3e93ac55279d20eb7deb2a9e0367d09d4b6 /editeng
parentcppcheck: variable reassigned before the old value has been used (diff)
downloadcore-f504768a96601622f089dc6ee7620df1d014c6fb.tar.gz
core-f504768a96601622f089dc6ee7620df1d014c6fb.zip
Get typed text inside cell (in Calc) to display again.
This also fixes non-displayed text box contents in Draw / Impress. Change-Id: I49d022ea71df398a70d1dc65eeb122c9a6373b27
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/editeng.cxx2
-rw-r--r--editeng/source/editeng/impedit2.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/editeng/editeng.cxx b/editeng/source/editeng/editeng.cxx
index 9e6807f86de0..ed8c54d87b6f 100644
--- a/editeng/source/editeng/editeng.cxx
+++ b/editeng/source/editeng/editeng.cxx
@@ -1290,7 +1290,7 @@ sal_Bool EditEngine::PostKeyEvent( const KeyEvent& rKeyEvent, EditView* pEditVie
if ( pImpEditEngine->GetStatus().DoAutoComplete() && ( nCharCode != ' ' ) )
{
// Only at end of word...
- sal_uInt16 nIndex = aCurSel.Max().GetIndex();
+ sal_Int32 nIndex = aCurSel.Max().GetIndex();
if ( ( nIndex >= aCurSel.Max().GetNode()->Len() ) ||
( pImpEditEngine->aWordDelimiters.indexOf( aCurSel.Max().GetNode()->GetChar( nIndex ) ) != -1 ) )
{
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx
index d9884c673033..eb1e36681d71 100644
--- a/editeng/source/editeng/impedit2.cxx
+++ b/editeng/source/editeng/impedit2.cxx
@@ -3578,11 +3578,11 @@ Range ImpEditEngine::GetInvalidYOffsets( ParaPortion* pPortion )
// Syndicate and more ...
aRange.Max() = aRange.Min();
aRange.Max() += pPortion->GetFirstLineOffset();
- if ( nFirstInvalid > 0 ) // Only if the first line is invalid
+ if (nFirstInvalid >= 0) // Only if the first line is invalid
aRange.Min() = aRange.Max();
sal_Int32 nLastInvalid = pPortion->GetLines().Count()-1;
- if(nFirstInvalid > 0)
+ if (nFirstInvalid >= 0)
{
for ( nLine = nFirstInvalid; nLine < pPortion->GetLines().Count(); nLine++ )
{