summaryrefslogtreecommitdiff
path: root/sw/source/uibase/docvw
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/docvw')
-rw-r--r--sw/source/uibase/docvw/HeaderFooterWin.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/uibase/docvw/HeaderFooterWin.cxx b/sw/source/uibase/docvw/HeaderFooterWin.cxx
index 1cb1dbd77a6a..9e66daab2a24 100644
--- a/sw/source/uibase/docvw/HeaderFooterWin.cxx
+++ b/sw/source/uibase/docvw/HeaderFooterWin.cxx
@@ -434,6 +434,9 @@ void SwHeaderFooterWin::ExecuteCommand(const OString& rIdent)
else if (rIdent == "delete")
{
rSh.ChangeHeaderOrFooter( rStyleName, m_bIsHeader, false, true );
+ if ( IsEmptyHeaderFooter() )
+ rSh.ToggleHeaderFooterEdit();
+ GrabFocusToDocument();
}
else if (rIdent == "insert_pagenumber")
{