diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-11-25 15:04:13 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-11-25 15:45:58 +0000 |
commit | 378f500bf64e96a92132fe5f965a6503db416183 (patch) | |
tree | 946052ff7fe0b177a31f0bfbadda6562f9692f0c /sd/source/ui | |
parent | f4ac785494ac056535d2ff12ac59b909dafa4bab (diff) |
coverity#1340222 Logically dead code
This is (worrying) fall-out from
commit 229fc164dc1773484b74eca016863cf68860e81b
Author: Philippe Jung <phil.jung@free.fr>
Date: Fri Jul 10 17:02:44 2015 +0200
Impress: Rework the way the display modes are presented.
Change-Id: I00d19b2d3cec4d505d17ba4031f6763c86395f74
Diffstat (limited to 'sd/source/ui')
-rw-r--r-- | sd/source/ui/view/drviewse.cxx | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/sd/source/ui/view/drviewse.cxx b/sd/source/ui/view/drviewse.cxx index a293696455b6..4aa451078449 100644 --- a/sd/source/ui/view/drviewse.cxx +++ b/sd/source/ui/view/drviewse.cxx @@ -999,24 +999,6 @@ void DrawViewShell::FuSupport(SfxRequest& rReq) Broadcast ( ViewShellHint(ViewShellHint::HINT_CHANGE_EDIT_MODE_START)); - // Is there a page with the AutoLayout "Title"? - bool bFound = false; - sal_uInt16 i = 0; - sal_uInt16 nCount = GetDoc()->GetSdPageCount(PK_STANDARD); - - while (i < nCount && !bFound) - { - SdPage* pPage = GetDoc()->GetSdPage(i, PK_STANDARD); - - if (nSId == SID_SLIDE_MASTER_MODE && pPage->GetAutoLayout() != AUTOLAYOUT_TITLE) - { - bFound = true; - SwitchPage((pPage->GetPageNum() - 1) / 2); - } - - i++; - } - // turn on default layer of MasterPage mpDrawView->SetActiveLayer( SD_RESSTR(STR_LAYER_BCKGRNDOBJ) ); |