summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/docsh4.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/docshell/docsh4.cxx')
-rw-r--r--sc/source/ui/docshell/docsh4.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx
index 8a4a0f0641aa..44983e8ba3df 100644
--- a/sc/source/ui/docshell/docsh4.cxx
+++ b/sc/source/ui/docshell/docsh4.cxx
@@ -1534,10 +1534,7 @@ void ScDocShell::ExecutePageStyle( SfxViewShell& rCaller,
case SID_STATUS_PAGESTYLE: // Click auf StatusBar-Control
case SID_FORMATPAGE:
{
- if ( pReqArgs != nullptr )
- {
- }
- else if ( pReqArgs == nullptr )
+ if ( pReqArgs == nullptr )
{
OUString aOldName = aDocument.GetPageStyle( nCurTab );
ScStyleSheetPool* pStylePool = aDocument.GetStyleSheetPool();
@@ -1608,10 +1605,7 @@ void ScDocShell::ExecutePageStyle( SfxViewShell& rCaller,
case SID_HFEDIT:
{
- if ( pReqArgs != nullptr )
- {
- }
- else if ( pReqArgs == nullptr )
+ if ( pReqArgs == nullptr )
{
OUString aStr( aDocument.GetPageStyle( nCurTab ) );