summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/uibase/app/docst.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sw/source/uibase/app/docst.cxx b/sw/source/uibase/app/docst.cxx
index a93bb5ab9ab0..f8c424db280f 100644
--- a/sw/source/uibase/app/docst.cxx
+++ b/sw/source/uibase/app/docst.cxx
@@ -324,6 +324,14 @@ void SwDocShell::ExecStyleSheet( SfxRequest& rReq )
sName = SfxStyleDialog::GenerateUnusedName(*m_xBasePool);
nRet = Edit( sName, sParent, nFamily, nMask, true, OString(), nullptr, rReq.IsAPI() );
+
+ // Update Watermark if new page style was created
+ if( nFamily == SfxStyleFamily::Page )
+ {
+ SwWrtShell* pShell = GetWrtShell();
+ const SfxWatermarkItem aWatermark = pShell->GetWatermark();
+ pShell->SetWatermark( aWatermark );
+ }
}
break;