From 44fbaa838f26d5bd13101438941b9fd2bdf7e467 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Tue, 17 May 2011 12:54:00 +0200 Subject: fix brain fart --- sfx2/source/control/statcach.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sfx2') diff --git a/sfx2/source/control/statcach.cxx b/sfx2/source/control/statcach.cxx index cd60b7a2ec5b..50011820f4bf 100644 --- a/sfx2/source/control/statcach.cxx +++ b/sfx2/source/control/statcach.cxx @@ -410,7 +410,7 @@ void SfxStateCache::SetVisibleState( sal_Bool bShow ) if ( pInternalController ) pInternalController->StateChanged( nId, eState, pState ); - if ( !bDeleteItem ) + if ( bDeleteItem ) delete pState; } } -- cgit