summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-05-25 10:45:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-05-25 12:33:14 +0100
commit7e5ade130910006d50a8fdb9cde00c17c06014b7 (patch)
tree6617b95a54a666aefa36e6f2c29942722a0797ee /sfx2
parentc9ed6e832213129cc579c1c309ce9dbd3593c57a (diff)
because pCW->bCreate is always set to true, the conditional isn't useful
Change-Id: Icba66b3832cdf8dbd916604f08cb1d5f9bb81873
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/workwin.cxx23
1 files changed, 10 insertions, 13 deletions
diff --git a/sfx2/source/appl/workwin.cxx b/sfx2/source/appl/workwin.cxx
index 462b8a55ed4f..537405c13447 100644
--- a/sfx2/source/appl/workwin.cxx
+++ b/sfx2/source/appl/workwin.cxx
@@ -1897,20 +1897,17 @@ void SfxWorkWindow::ToggleChildWindow_Impl(sal_uInt16 nId, bool bSetFocus)
else
{
pCW->bCreate = true;
- if ( pCW->bCreate )
+ if ( pChild )
{
- if ( pChild )
- {
- ShowChildWindow_Impl( nId, true, bSetFocus );
- }
- else
- {
- // create actual Window
- CreateChildWin_Impl( pCW, bSetFocus );
- if ( !pCW->pWin )
- // no success
- pCW->bCreate = false;
- }
+ ShowChildWindow_Impl( nId, true, bSetFocus );
+ }
+ else
+ {
+ // create actual Window
+ CreateChildWin_Impl( pCW, bSetFocus );
+ if ( !pCW->pWin )
+ // no success
+ pCW->bCreate = false;
}
}
}