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

Resolves: fdo#82355 crash on loading ppt

regression probably triggered by...

commit 2e3c45af
Date:   Fri Mar 4 07:38:16 2011 -0800
Remove usage of deprecated List container.

but that just stopped at the first NULL by chance

Change-Id: I767e3bc3130d99cedceb4172857d1741c677b19b
üst a0de5cc9
......@@ -208,9 +208,10 @@ void SdPage::SetPresentationLayout(const OUString& rLayoutName,
if (pSheet != pOldSheet)
{
pObj->EndListening(*pOldSheet);
if (pOldSheet)
pObj->EndListening(*pOldSheet);
if (!pObj->IsListening(*pSheet))
if (pSheet && !pObj->IsListening(*pSheet))
pObj->StartListening(*pSheet);
}
......
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