summaryrefslogtreecommitdiff
path: root/svx/source/svdraw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-09-04 20:38:17 +0200
committerMichael Stahl <mstahl@redhat.com>2012-09-04 20:47:59 +0200
commit1146b889325fd01f24c6aacf557d3940dd147936 (patch)
treef5480c70d913726bea4ad9b1634ad330a086aef8 /svx/source/svdraw
parent61b899e4b6b10c78daa818751e341f0c69e6f3d7 (diff)
fdo#53872: reportdesign: fix section drawpage crash:
In order to wrap the SdrPage's UNO object completely, set its mxUnoPage member to the OSection wrapper instance in OSection::init; only OSection should have access to it. Also initialize m_xDrawPage_Tunnel (thanks Lionel for the hint). (regression from 05218c101df486302bf4cfe8be23ad840daa3f73) Change-Id: I048ddafc31e946853e56e6a403ddc9487cfbcf0e
Diffstat (limited to 'svx/source/svdraw')
-rw-r--r--svx/source/svdraw/svdpage.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdpage.cxx b/svx/source/svdraw/svdpage.cxx
index fffb8ed6c87b..05434c43dbfa 100644
--- a/svx/source/svdraw/svdpage.cxx
+++ b/svx/source/svdraw/svdpage.cxx
@@ -1785,10 +1785,13 @@ void SdrPage::SetInserted( bool bIns )
}
}
+void SdrPage::SetUnoPage(uno::Reference<drawing::XDrawPage> const& xNewPage)
+{
+ mxUnoPage = xNewPage;
+}
uno::Reference< uno::XInterface > SdrPage::getUnoPage()
{
- // try weak reference first
if( !mxUnoPage.is() )
{
// create one