summaryrefslogtreecommitdiff
path: root/svx/source/form/datanavi.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-14 14:18:13 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-14 15:25:28 +0100
commit3ec9d2724ab48a027385bdda443ab06af2626b2b (patch)
tree7b442f7d16b596eb71c4c67923454afac7660db1 /svx/source/form/datanavi.cxx
parenteb5137543012b05dba2df9b92688e01ddee28922 (diff)
Resolves: fdo#36534 rework SvxSimpleTable to not manage its own parent
SvxSimpleTable was a little confused in that it wanted to both inherit from SvHeaderTabListBox to get list semantics, and to wrap a SvHeaderTabListBox and HeaderBar inside a single Control Leading to a chain of events that in some contexts the "Size" refers to the complete collection of controls, and in some contexts the "Size" refers to the SvHeaderTabListBox alone. Split it up, force it to be only a child of SvxSimpleTableContainer and leave the work of containment to SvxSimpleTableContainer, and leave SvxSimpleTable as "is a SvHeaderTabListBox" not "is a or maybe has a SvHeaderTabListBox"
Diffstat (limited to 'svx/source/form/datanavi.cxx')
-rw-r--r--svx/source/form/datanavi.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx
index df4f2448342a..8a89d8185cb6 100644
--- a/svx/source/form/datanavi.cxx
+++ b/svx/source/form/datanavi.cxx
@@ -3158,7 +3158,8 @@ namespace svxform
ModalDialog( _pCondDlg, SVX_RES( RID_SVXDLG_NAMESPACE_ITEM ) ),
m_aNamespacesFT ( this, SVX_RES( FT_NAMESPACES ) ),
- m_aNamespacesList ( this, SVX_RES( LB_NAMESPACES ) ),
+ m_aNamespacesListContainer ( this, SVX_RES( LB_NAMESPACES ) ),
+ m_aNamespacesList ( m_aNamespacesListContainer ),
m_aAddNamespaceBtn ( this, SVX_RES( PB_ADD_NAMESPACE ) ),
m_aEditNamespaceBtn ( this, SVX_RES( PB_EDIT_NAMESPACE ) ),
m_aDeleteNamespaceBtn ( this, SVX_RES( PB_DELETE_NAMESPACE ) ),