Kaydet (Commit) 7e5ade13 authored tarafından Caolán McNamara's avatar Caolán McNamara

because pCW->bCreate is always set to true, the conditional isn't useful

Change-Id: Icba66b3832cdf8dbd916604f08cb1d5f9bb81873
üst c9ed6e83
......@@ -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;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment