diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-07-14 12:08:08 -0400 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-07-14 14:25:51 -0400 |
commit | af10b8292ce5f428598c99c52160aa9a19061d13 (patch) | |
tree | 4f5f35e35b87262d1078d33a621d83bb28c8f705 /sc | |
parent | 02039def0c087d6980ab6b5d1b8e78e5d5f0f16b (diff) |
Reverted 70af08e849a93d56915b7abe14537facf1022a6a.
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/output.cxx | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx index 10925ef4f6f0..331df1b9e037 100644 --- a/sc/source/ui/view/output.cxx +++ b/sc/source/ui/view/output.cxx @@ -52,7 +52,6 @@ #include <basegfx/matrix/b2dhommatrix.hxx> #include <svx/sdr/contact/objectcontacttools.hxx> #include <svx/unoapi.hxx> -#include <svx/svdpage.hxx> #include "output.hxx" #include "document.hxx" @@ -1635,22 +1634,17 @@ void ScOutputData::DrawRotatedFrame( const Color* pForceColor ) drawinglayer::processor2d::BaseProcessor2D* ScOutputData::CreateProcessor2D( ) { - SdrModel aModel; - SfxItemPool& rPool = aModel.GetItemPool(); - rPool.FreezeIdRanges(); - - SdrPage aSdrPage( aModel ); - ScDrawLayer* pDrawLayer = pDoc->GetDrawLayer(); - if ( pDrawLayer ) - aSdrPage = *pDrawLayer->GetPage( static_cast< sal_uInt16 >( nTab ) ); + if (!pDrawLayer) + return NULL; basegfx::B2DRange aViewRange; + SdrPage *pDrawPage = pDrawLayer->GetPage( static_cast< sal_uInt16 >( nTab ) ); const drawinglayer::geometry::ViewInformation2D aNewViewInfos( basegfx::B2DHomMatrix( ), pDev->GetViewTransformation(), aViewRange, - GetXDrawPageForSdrPage( &aSdrPage ), + GetXDrawPageForSdrPage( pDrawPage ), 0.0, uno::Sequence< beans::PropertyValue >() ); |