summaryrefslogtreecommitdiff
path: root/sw/source/ui/frmdlg/frmdlg.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-09-30 12:22:37 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-09-30 12:22:37 +0000
commite1ae28f12d3bc9cbfe3ee13154d45d00c4efba78 (patch)
tree4231c04224bcdcfe096fb1b998439e053dff166e /sw/source/ui/frmdlg/frmdlg.cxx
parent44849948afc1dccf696f8e7d0c47b7c5325553e8 (diff)
CWS-TOOLING: integrate CWS docmacroassignments_DEV300
Diffstat (limited to 'sw/source/ui/frmdlg/frmdlg.cxx')
-rw-r--r--sw/source/ui/frmdlg/frmdlg.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/ui/frmdlg/frmdlg.cxx b/sw/source/ui/frmdlg/frmdlg.cxx
index 0e323bba4a..ec956a08b0 100644
--- a/sw/source/ui/frmdlg/frmdlg.cxx
+++ b/sw/source/ui/frmdlg/frmdlg.cxx
@@ -45,6 +45,7 @@
#ifndef _VIEW_HXX
#include <view.hxx>
#endif
+#include <docsh.hxx>
#include <viewopt.hxx>
#include <frmdlg.hxx>
#include <frmpage.hxx>
@@ -194,6 +195,9 @@ void SwFrmDlg::PageCreated( USHORT nId, SfxTabPage &rPage )
DLG_FRM_GRF == m_nDlgType ? MACASSGN_GRAPHIC
: DLG_FRM_OLE == m_nDlgType ? MACASSGN_OLE
: MACASSGN_FRMURL );
+ if ( m_pWrtShell && m_pWrtShell->GetView().GetDocShell()
+ && m_pWrtShell->GetView().GetDocShell()->GetFrame() && m_pWrtShell->GetView().GetDocShell()->GetFrame()->GetFrame() )
+ rPage.SetFrame( m_pWrtShell->GetView().GetDocShell()->GetFrame()->GetFrame()->GetFrameInterface() );
break;
case TP_BACKGROUND: