Kaydet (Commit) 6a28de49 authored tarafından Eike Rathke's avatar Eike Rathke

erase the correct element in ScColumn::Delete(), not the last one

This fixes the dreaded crash in sc_unoapi test.
Thanks to Kohei for pointing in the right direction.
üst 82a06107
...@@ -172,7 +172,7 @@ void ScColumn::Delete( SCROW nRow ) ...@@ -172,7 +172,7 @@ void ScColumn::Delete( SCROW nRow )
else else
{ {
pNoteCell->Delete(); pNoteCell->Delete();
maItems.erase(maItems.end() - 1); maItems.erase( maItems.begin() + nIndex);
// Soll man hier den Speicher freigeben (delta)? Wird dann langsamer! // Soll man hier den Speicher freigeben (delta)? Wird dann langsamer!
} }
pCell->EndListeningTo( pDocument ); pCell->EndListeningTo( pDocument );
......
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