diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-04 10:47:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-05 07:52:42 +0100 |
commit | a04e615e1f9371401946c7c89d7ec439ce92cfec (patch) | |
tree | 4cc87af8085f5386f3ff9195028fb3d5681ca992 /sd/source/ui/docshell | |
parent | 307b746cd41fa5bf971573dd7665108def4e298b (diff) |
remove unused SdrSwapGraphicsMode enum
Change-Id: Iec7660563e96f821f72caae5047820f425ca69fb
Reviewed-on: https://gerrit.libreoffice.org/64565
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/docshell')
-rw-r--r-- | sd/source/ui/docshell/docshel3.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/docshell/docshel4.cxx | 6 |
2 files changed, 0 insertions, 10 deletions
diff --git a/sd/source/ui/docshell/docshel3.cxx b/sd/source/ui/docshell/docshel3.cxx index a9925bf5f13b..deb709850f45 100644 --- a/sd/source/ui/docshell/docshel3.cxx +++ b/sd/source/ui/docshell/docshel3.cxx @@ -231,11 +231,7 @@ void DrawDocShell::Execute( SfxRequest& rReq ) case SID_VERSION: { - const SdrSwapGraphicsMode nOldSwapMode = mpDoc->GetSwapGraphicsMode(); - - mpDoc->SetSwapGraphicsMode( SdrSwapGraphicsMode::TEMP ); ExecuteSlot( rReq, SfxObjectShell::GetStaticInterface() ); - mpDoc->SetSwapGraphicsMode( nOldSwapMode ); } break; diff --git a/sd/source/ui/docshell/docshel4.cxx b/sd/source/ui/docshell/docshel4.cxx index 5b72517cec98..15c76777a9b6 100644 --- a/sd/source/ui/docshell/docshel4.cxx +++ b/sd/source/ui/docshell/docshel4.cxx @@ -635,10 +635,6 @@ bool DrawDocShell::ConvertTo( SfxMedium& rMedium ) if (xFilter) { - const SdrSwapGraphicsMode nOldSwapMode = mpDoc->GetSwapGraphicsMode(); - - mpDoc->SetSwapGraphicsMode( SdrSwapGraphicsMode::TEMP ); - if ( mpViewShell ) { ::sd::View* pView = mpViewShell->GetView(); @@ -647,8 +643,6 @@ bool DrawDocShell::ConvertTo( SfxMedium& rMedium ) } bRet = xFilter->Export(); - if( !bRet ) - mpDoc->SetSwapGraphicsMode( nOldSwapMode ); } } |