diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-03-09 19:24:14 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-03-09 19:27:50 +0100 |
commit | d7bb16fde85f42e36f35607b0bd7ccc6627952b7 (patch) | |
tree | 3a3a7848e29b94f0434f5dcacd9af0ddf5db582f /chart2 | |
parent | 835c637d497a37d78b599669b54934d84e0daa4d (diff) |
disable property mapping for unsupported chart types
Change-Id: I1c7c3bebe71029787796c21706088784c4934954
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/dialogs/tp_DataSource.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chart2/source/controller/dialogs/tp_DataSource.cxx b/chart2/source/controller/dialogs/tp_DataSource.cxx index f15f2e1e8bbd..11b0b7c416bf 100644 --- a/chart2/source/controller/dialogs/tp_DataSource.cxx +++ b/chart2/source/controller/dialogs/tp_DataSource.cxx @@ -470,6 +470,12 @@ void DataSourceTabPage::fillRoleListBox() } m_pLB_ROLE->SetUpdateMode( sal_True ); + + if(pSeriesEntry->m_xChartType + ->getSupportedPropertyRoles().getLength() == 0) + m_pBtn_AddMapping->Disable(); + else + m_pBtn_AddMapping->Enable(); } } |