Kaydet (Commit) e955030c authored tarafından Caolán McNamara's avatar Caolán McNamara

fix crash after overwriting content with tab and using move buttons

Change-Id: Ica52384f05ea1e74c489b38d953e27dd37bcde89
üst bc1fced1
...@@ -1581,9 +1581,9 @@ void AddressMultiLineEdit::MoveCurrentItem(sal_uInt16 nMove) ...@@ -1581,9 +1581,9 @@ void AddressMultiLineEdit::MoveCurrentItem(sal_uInt16 nMove)
InsertNewEntryAtPosition( sCurrentItem, nPara, nIndex ); InsertNewEntryAtPosition( sCurrentItem, nPara, nIndex );
// select the new entry [#i40817] // select the new entry [#i40817]
const TextCharAttrib *pAttrib; const TextCharAttrib *pAttrib = pTextEngine->FindCharAttrib(TextPaM(nPara, nIndex),TEXTATTR_PROTECTED);
pAttrib = pTextEngine->FindCharAttrib(TextPaM(nPara, nIndex),TEXTATTR_PROTECTED); if (pAttrib)
aEntrySel = TextSelection(TextPaM(nPara, nIndex), TextPaM(nPara, pAttrib->GetEnd())); aEntrySel = TextSelection(TextPaM(nPara, nIndex), TextPaM(nPara, pAttrib->GetEnd()));
pTextView->SetSelection(aEntrySel); pTextView->SetSelection(aEntrySel);
Invalidate(); Invalidate();
Modify(); Modify();
......
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