Kaydet (Commit) 0747a94b authored tarafından Cédric Bosdonnat's avatar Cédric Bosdonnat Kaydeden (comit) Kohei Yoshida

fdo#36688: Fixed undisplayed calc page and header / footer borders

When displaying the page, header and footer borders, calc uses a fake
ScDocument with no drawing page. Create a new SdrPage if none can be
fetched from the ScDocument to create the primitive processor.
Signed-off-by: 's avatarKohei Yoshida <kyoshida@novell.com>
üst 655583be
......@@ -52,6 +52,7 @@
#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"
......@@ -1634,17 +1635,19 @@ void ScOutputData::DrawRotatedFrame( const Color* pForceColor )
drawinglayer::processor2d::BaseProcessor2D* ScOutputData::CreateProcessor2D( )
{
SdrModel aModel;
SdrPage aSdrPage( aModel );
ScDrawLayer* pDrawLayer = pDoc->GetDrawLayer();
if (!pDrawLayer)
return NULL;
if ( pDrawLayer )
aSdrPage = *pDrawLayer->GetPage( static_cast< sal_uInt16 >( nTab ) );
basegfx::B2DRange aViewRange;
SdrPage *pDrawPage = pDrawLayer->GetPage( static_cast< sal_uInt16 >( nTab ) );
const drawinglayer::geometry::ViewInformation2D aNewViewInfos(
basegfx::B2DHomMatrix( ),
pDev->GetViewTransformation(),
aViewRange,
GetXDrawPageForSdrPage( pDrawPage ),
GetXDrawPageForSdrPage( &aSdrPage ),
0.0,
uno::Sequence< beans::PropertyValue >() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment