diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-24 13:36:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-25 10:14:02 +0200 |
commit | bbf134a2b77909706492cbc41952210f89c0df71 (patch) | |
tree | bbb1585a1dd0a92a22b511d93afb2b6d62331a49 /chart2/source/controller/dialogs/tp_DataSource.cxx | |
parent | 4d6fc3c88902ca74f934960e7600df99605dea48 (diff) |
SvTabListBox::SetTabs, pass count explicit
passing count as first element in array, dodgy.
Change-Id: I49905b554b3b4d6cc3fa419a36389cd2e5ded463
Diffstat (limited to 'chart2/source/controller/dialogs/tp_DataSource.cxx')
-rw-r--r-- | chart2/source/controller/dialogs/tp_DataSource.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/controller/dialogs/tp_DataSource.cxx b/chart2/source/controller/dialogs/tp_DataSource.cxx index 95cb5495d4ad..ad3ddf8a9e8d 100644 --- a/chart2/source/controller/dialogs/tp_DataSource.cxx +++ b/chart2/source/controller/dialogs/tp_DataSource.cxx @@ -126,7 +126,7 @@ OUString lcl_GetSequenceNameForLabel( ::chart::SeriesEntry const * pEntry ) } static long lcl_pRoleListBoxTabs[] = - { 3, // Number of Tabs + { 0, 0, 75 }; @@ -257,7 +257,7 @@ DataSourceTabPage::DataSourceTabPage( m_pBTN_DOWN->SetText( OUString( cBlackDownPointingTriangle )); // init controls - m_pLB_ROLE->SetTabs( lcl_pRoleListBoxTabs ); + m_pLB_ROLE->SetTabs( SAL_N_ELEMENTS(lcl_pRoleListBoxTabs), lcl_pRoleListBoxTabs ); m_pLB_ROLE->Show(); updateControlsFromDialogModel(); |