summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-11-17 15:51:58 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-11-17 20:32:41 +0100
commite29418c582f15595d804fb499b9635e8545f1506 (patch)
tree36f24367b1b65ddba211ea3d2789c9696c1adb1d /chart2
parent9e296065c6c12ed13b28d0e21445d1fe75b54a3c (diff)
Resolves: tdf#152087 strip any newlines from the entry
Change-Id: I965ecd89c7edaf1a02d3f94df23f09c9e9490d54 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142896 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/main/ElementSelector.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/chart2/source/controller/main/ElementSelector.cxx b/chart2/source/controller/main/ElementSelector.cxx
index 34bba3173a85..d538108ae8e9 100644
--- a/chart2/source/controller/main/ElementSelector.cxx
+++ b/chart2/source/controller/main/ElementSelector.cxx
@@ -158,7 +158,8 @@ void SelectorListBox::UpdateChartElementsListAndSelection()
sal_uInt16 nN=0;
for (auto const& entry : m_aEntries)
{
- m_xWidget->append_text(entry.UIName);
+ // tdf#152087 strip any newlines from the entry
+ m_xWidget->append_text(entry.UIName.replaceAll("\n", " "));
if ( !bSelectionFound && aSelectedOID == entry.OID )
{
nEntryPosToSelect = nN;