From db61ca5b3abbd2df433bcab516f8fa2cfbc01944 Mon Sep 17 00:00:00 2001 From: Ashod Nakashian Date: Wed, 18 Oct 2017 13:09:59 +0400 Subject: TSCP: support abbreviated classification names Change-Id: Ib7edc491d2f8a69c48f1515ba29d79e09c88c3b7 Reviewed-on: https://gerrit.libreoffice.org/43627 Tested-by: Jenkins Reviewed-by: Ashod Nakashian --- svx/source/dialog/ClassificationDialog.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'svx') diff --git a/svx/source/dialog/ClassificationDialog.cxx b/svx/source/dialog/ClassificationDialog.cxx index 45e83af10ae7..c0d0e0691a6c 100644 --- a/svx/source/dialog/ClassificationDialog.cxx +++ b/svx/source/dialog/ClassificationDialog.cxx @@ -178,7 +178,7 @@ std::vector ClassificationDialog::getResult() IMPL_LINK(ClassificationDialog, SelectClassificationHdl, ListBox&, rBox, void) { - sal_Int32 nSelected = rBox.GetSelectedEntryPos(); + const sal_Int32 nSelected = rBox.GetSelectedEntryPos(); if (nSelected >= 0) { std::unique_ptr pEditText(m_pEditWindow->pEdEngine->CreateTextObject()); @@ -198,7 +198,7 @@ IMPL_LINK(ClassificationDialog, SelectClassificationHdl, ListBox&, rBox, void) } } - OUString aString = maHelper.GetBACNames()[nSelected]; + const OUString aString = maHelper.GetAbbreviatedBACNames()[nSelected]; insertField(ClassificationType::CATEGORY, aString); m_pInternationalClassificationListBox->SelectEntryPos(nSelected); @@ -228,7 +228,7 @@ IMPL_LINK(ClassificationDialog, SelectMarkingHdl, ListBox&, rBox, void) } } - OUString aString = maHelper.GetMarkings()[nSelected]; + const OUString aString = maHelper.GetMarkings()[nSelected]; insertField(ClassificationType::MARKING, aString); } } -- cgit