Author: orw
Date: Tue Apr 30 12:21:46 2013
New Revision: 1477587

URL: http://svn.apache.org/r1477587
Log:
SfxControllerItem::GetCoreMetric() - invalidate used slot to avoid inconsistent 
state information
    Invalid state information may cause crashes due to not updated slot data

Modified:
    openoffice/trunk/main/sfx2/source/control/ctrlitem.cxx

Modified: openoffice/trunk/main/sfx2/source/control/ctrlitem.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/sfx2/source/control/ctrlitem.cxx?rev=1477587&r1=1477586&r2=1477587&view=diff
==============================================================================
--- openoffice/trunk/main/sfx2/source/control/ctrlitem.cxx (original)
+++ openoffice/trunk/main/sfx2/source/control/ctrlitem.cxx Tue Apr 30 12:21:46 
2013
@@ -445,6 +445,11 @@ SfxMapUnit SfxControllerItem::GetCoreMet
             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 );
         }
     }


Reply via email to