diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-14 15:54:14 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-14 15:47:48 +0200 |
commit | 6154489314d2f2bf9cb99b72f15c79dd48a1da14 (patch) | |
tree | d9bbbc2e0233d417555109206bdb2d298ce838ac /sd | |
parent | eb772683513f4f2b6c8e6404c29b8e477ffc7fad (diff) |
tdf#120703 PVS: V581 ifs with identical conditions
V581 The conditional expressions of the 'if' statements situated
alongside each other are identical.
Change-Id: I18562d60e33c7ecff14807976dde4cbcae3f665b
Reviewed-on: https://gerrit.libreoffice.org/70731
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/core/drawdoc3.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sd/source/core/drawdoc3.cxx b/sd/source/core/drawdoc3.cxx index 2bd0c59acc38..17ac70da7b2a 100644 --- a/sd/source/core/drawdoc3.cxx +++ b/sd/source/core/drawdoc3.cxx @@ -1764,11 +1764,9 @@ void SdDrawDocument::SetMasterPage(sal_uInt16 nSdPageNum, for (const auto& a : aCreatedStyles) aUndoInsert.emplace_back(a.get(), true); pUndoMgr->AddUndoAction(std::make_unique<SdMoveStyleSheetsUndoAction>(this, aUndoInsert, true)); - } - - // Generate new master pages and register them with the document - if( bUndo ) + // Generate new master pages and register them with the document BegUndo(); + } pMaster = AllocSdPage(true); pMaster->SetSize(pSelectedPage->GetSize()); |