Kaydet (Commit) cc7635c5 authored tarafından Michael Stahl's avatar Michael Stahl

sw: remove window invalidation from SwRedlineTable::DeleteAndDestroyAll()

This is called in 2 situations, from ClearDoc() and from SwDoc dtor.

In the latter case, there is no window any more, and in the former case,
surely something else must have invalidated it already.

Change-Id: Ideecdeb145171a4dafbec50a04d4ec5aa2acab82
üst 52cd97fb
......@@ -609,9 +609,6 @@ void SwRedlineTable::Remove( size_type nP )
void SwRedlineTable::DeleteAndDestroyAll()
{
if (maVector.empty())
return;
SwDoc *const pDoc = maVector.front()->GetDoc();
while (!maVector.empty())
{
auto const pRedline = maVector.back();
......@@ -619,14 +616,6 @@ void SwRedlineTable::DeleteAndDestroyAll()
LOKRedlineNotification(RedlineNotification::Remove, pRedline);
delete pRedline;
}
if (pDoc && !pDoc->IsInDtor())
{
SwViewShell* pSh(pDoc->getIDocumentLayoutAccess().GetCurrentViewShell() );
if (pSh)
{
pSh->InvalidateWindows(SwRect(0, 0, SAL_MAX_INT32, SAL_MAX_INT32));
}
}
}
void SwRedlineTable::DeleteAndDestroy(size_type const nP)
......
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