summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-03-31 13:40:10 +0200
committerMichael Stahl <mstahl@redhat.com>2015-03-31 20:08:51 +0200
commitd1e63af0fb5c9aa344baae0c34d069385b8f0736 (patch)
tree039a859c7c73409a5121c715863472c244585d15
parentf3bb701223953df02f005b98d2eee13e82016bd7 (diff)
sw: clean up odd formatting
Change-Id: I0e84e3dce84096a9085c911e6b82f5a4ee90d903
-rw-r--r--sw/source/core/doc/docdesc.cxx19
1 files changed, 12 insertions, 7 deletions
diff --git a/sw/source/core/doc/docdesc.cxx b/sw/source/core/doc/docdesc.cxx
index 18147a2e1484..3ef0eaee0940 100644
--- a/sw/source/core/doc/docdesc.cxx
+++ b/sw/source/core/doc/docdesc.cxx
@@ -475,19 +475,24 @@ void SwDoc::ChgPageDesc( sal_uInt16 i, const SwPageDesc &rChged )
// If UseOn or the Follow change, the paragraphs need to know about it.
bool bUseOn = false;
bool bFollow = false;
- if ( rDesc.GetUseOn() != rChged.GetUseOn() )
- { rDesc.SetUseOn( rChged.GetUseOn() );
+ if (rDesc.GetUseOn() != rChged.GetUseOn())
+ {
+ rDesc.SetUseOn( rChged.GetUseOn() );
bUseOn = true;
}
- if ( rDesc.GetFollow() != rChged.GetFollow() )
- { if ( rChged.GetFollow() == &rChged )
- { if ( rDesc.GetFollow() != &rDesc )
- { rDesc.SetFollow( &rDesc );
+ if (rDesc.GetFollow() != rChged.GetFollow())
+ {
+ if (rChged.GetFollow() == &rChged)
+ {
+ if (rDesc.GetFollow() != &rDesc)
+ {
+ rDesc.SetFollow( &rDesc );
bFollow = true;
}
}
else
- { rDesc.SetFollow( rChged.m_pFollow );
+ {
+ rDesc.SetFollow( rChged.m_pFollow );
bFollow = true;
}
}