Kaydet (Commit) 06803677 authored tarafından Oliver-Rainer Wittmann's avatar Oliver-Rainer Wittmann Kaydeden (comit) Caolán McNamara

invalidate used slot to avoid inconsistent state information

Invalid state information may cause crashes due to not updated slot data

(cherry picked from commit 7267a4b8)

Change-Id: I3bc3f934c5144fb0873e7a9694c3c012ddb0b367
üst 1ad700f5
......@@ -384,6 +384,11 @@ SfxMapUnit SfxControllerItem::GetCoreMetric() const
SfxShell *pSh = pDispat->GetShell( pServer->GetShellLevel() );
SfxItemPool &rPool = pSh->GetPool();
sal_uInt16 nWhich = rPool.GetWhich( nId );
// invalidate slot and its message|slot server as 'global' information
// about the validated message|slot server is not made available
pCache->Invalidate( sal_True );
return rPool.GetMetric( nWhich );
}
}
......
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