diff options
author | Siqi Liu <me@siqi.fr> | 2015-04-13 16:30:42 +0200 |
---|---|---|
committer | Siqi Liu <me@siqi.fr> | 2015-04-13 16:30:42 +0200 |
commit | 5cb2d709d6532929d3bc6a9e666c73975657ab4d (patch) | |
tree | 924b5e59ef3dfbcb53954a84f0ea089ea0c8bf03 /sfx2 | |
parent | 0632f77ee8059f2d65ad72bf148da88901732dc2 (diff) |
format changes
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/unoctitm.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index 41a20fe38a8e..f8c8ed0d220a 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -1017,7 +1017,8 @@ void SfxDispatchController_Impl::StateChanged( sal_uInt16 nSID, SfxItemState eSt aEvent.Requery = sal_False; aEvent.State = aState; - if (pDispatcher && pDispatcher->GetFrame()) { + if (pDispatcher && pDispatcher->GetFrame()) + { InterceptLOKStateChangeEvent( pDispatcher->GetFrame()->GetObjectShell(), aEvent); } @@ -1047,14 +1048,14 @@ void SfxDispatchController_Impl::StateChanged( sal_uInt16 nSID, SfxItemState eSt void SfxDispatchController_Impl::InterceptLOKStateChangeEvent(const SfxObjectShell* objSh, const ::com::sun::star::frame::FeatureStateEvent& aEvent) const { - if (!objSh || !objSh->isTiledRendering()) { + if (!objSh || !objSh->isTiledRendering()) return; - } if (aEvent.FeatureURL.Path == "Bold" || - aEvent.FeatureURL.Path == "Italic" || - aEvent.FeatureURL.Path == "Underline" || - aEvent.FeatureURL.Path == "StrikeOut") { + aEvent.FeatureURL.Path == "Italic" || + aEvent.FeatureURL.Path == "Underline" || + aEvent.FeatureURL.Path == "StrikeOut") + { OUStringBuffer aBuffer; aBuffer.append(aEvent.FeatureURL.Complete); |