diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-07-02 17:24:49 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-07-02 17:24:49 +0100 |
commit | eb39f90f071c03f8f9e61a0f129a060ffcfb96eb (patch) | |
tree | ae50cbba85749bafaac45ade8775b3cbd11ded20 /chart2 | |
parent | Resolves: fdo#66252 format->number for controls is busted (diff) | |
download | core-eb39f90f071c03f8f9e61a0f129a060ffcfb96eb.tar.gz core-eb39f90f071c03f8f9e61a0f129a060ffcfb96eb.zip |
Related: fdo#66252 RID_SVXPAGE_NUMBERFORMAT needs a layout parent
Change-Id: I25f87916e5b8480e50cafb30b78da4d575a7df24
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/dialogs/dlg_NumberFormat.cxx | 6 | ||||
-rw-r--r-- | chart2/source/controller/dialogs/dlg_NumberFormat.hxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/chart2/source/controller/dialogs/dlg_NumberFormat.cxx b/chart2/source/controller/dialogs/dlg_NumberFormat.cxx index 7a595ca9d9e7..348f66772079 100644 --- a/chart2/source/controller/dialogs/dlg_NumberFormat.cxx +++ b/chart2/source/controller/dialogs/dlg_NumberFormat.cxx @@ -40,15 +40,15 @@ namespace chart using namespace ::com::sun::star; NumberFormatDialog::NumberFormatDialog(Window* pParent, SfxItemSet& rSet) - : SfxNoLayoutSingleTabDialog( pParent, rSet, 0 ) + : SfxSingleTabDialog(pParent, rSet) { SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create(); ::CreateTabPage fnCreatePage = pFact->GetTabPageCreatorFunc( RID_SVXPAGE_NUMBERFORMAT ); if ( fnCreatePage ) { - SfxTabPage* pTabPage = (*fnCreatePage)( this, rSet ); + SfxTabPage* pTabPage = (*fnCreatePage)( get_content_area(), rSet ); pTabPage->PageCreated(rSet); - SetTabPage(pTabPage); + setTabPage(pTabPage); } } diff --git a/chart2/source/controller/dialogs/dlg_NumberFormat.hxx b/chart2/source/controller/dialogs/dlg_NumberFormat.hxx index 31535dd87bb5..c57460891348 100644 --- a/chart2/source/controller/dialogs/dlg_NumberFormat.hxx +++ b/chart2/source/controller/dialogs/dlg_NumberFormat.hxx @@ -29,7 +29,7 @@ namespace chart { //............................................................................. -class NumberFormatDialog : public SfxNoLayoutSingleTabDialog +class NumberFormatDialog : public SfxSingleTabDialog { public: NumberFormatDialog(Window* pParent, SfxItemSet& rSet); |