From d1e63af0fb5c9aa344baae0c34d069385b8f0736 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 31 Mar 2015 13:40:10 +0200 Subject: sw: clean up odd formatting Change-Id: I0e84e3dce84096a9085c911e6b82f5a4ee90d903 --- sw/source/core/doc/docdesc.cxx | 19 ++++++++++++------- 1 file 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; } } -- cgit