Kaydet (Commit) 7267a4b8 authored tarafından Oliver-Rainer Wittmann's avatar Oliver-Rainer Wittmann

SfxControllerItem::GetCoreMetric() - invalidate used slot to avoid inconsistent state information

Invalid state information may cause crashes due to not updated slot data
üst 83589233
...@@ -445,6 +445,11 @@ SfxMapUnit SfxControllerItem::GetCoreMetric() const ...@@ -445,6 +445,11 @@ SfxMapUnit SfxControllerItem::GetCoreMetric() const
SfxShell *pSh = pDispat->GetShell( pServer->GetShellLevel() ); SfxShell *pSh = pDispat->GetShell( pServer->GetShellLevel() );
SfxItemPool &rPool = pSh->GetPool(); SfxItemPool &rPool = pSh->GetPool();
sal_uInt16 nWhich = rPool.GetWhich( nId ); 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 ); 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