summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorSiqi Liu <me@siqi.fr>2015-04-13 16:30:42 +0200
committerSiqi Liu <me@siqi.fr>2015-04-13 16:30:42 +0200
commit5cb2d709d6532929d3bc6a9e666c73975657ab4d (patch)
tree924b5e59ef3dfbcb53954a84f0ea089ea0c8bf03 /sfx2
parent0632f77ee8059f2d65ad72bf148da88901732dc2 (diff)
format changes
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/unoctitm.cxx13
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);