summaryrefslogtreecommitdiffstats
path: root/svx/source
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-09-04 20:38:17 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2012-09-05 10:33:38 +0200
commit0e6054f8f5e2d41e50a50645defa5861599fe375 (patch)
treea0cd433cfa47f377045f27f8855d086ef215e375 /svx/source
parentDon't export the internal field name suffix '*' to ods. (diff)
downloadcore-0e6054f8f5e2d41e50a50645defa5861599fe375.tar.gz
core-0e6054f8f5e2d41e50a50645defa5861599fe375.zip
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 Signed-off-by: Lionel Elie Mamane <lionel@mamane.lu>
Diffstat (limited to 'svx/source')
-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 cd8ba23e4176..de8c4f448dc9 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