Kaydet (Commit) f504768a authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Get typed text inside cell (in Calc) to display again.

This also fixes non-displayed text box contents in Draw / Impress.

Change-Id: I49d022ea71df398a70d1dc65eeb122c9a6373b27
üst 5ca114ec
......@@ -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 ) )
{
......
......@@ -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++ )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment