TSCP: remove character limitation of recently used pop-up

Change-Id: I886fe180e73aea9685e647aaa3283f707344f69f
Reviewed-on: https://gerrit.libreoffice.org/44947
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
This commit is contained in:
Tomaž Vajngerl 2017-11-20 17:53:34 +09:00 committed by Tomaž Vajngerl
parent e4cd570780
commit d47aa694d0

View file

@ -276,14 +276,9 @@ short ClassificationDialog::Execute()
for (std::vector<ClassificationResult> const & rResults : m_aRecentlyUsedValuesCollection)
{
OUString rContentRepresentation = svx::classification::convertClassificationResultToString(rResults);
OUString rDescription = OUString::number(nNumber) + ": ";
OUString rDescription = OUString::number(nNumber) + ": " + rContentRepresentation;
nNumber++;
if (rContentRepresentation.getLength() >= 18)
rDescription += rContentRepresentation.copy(0, 17) + "...";
else
rDescription += rContentRepresentation;
m_pRecentlyUsedListBox->InsertEntry(rDescription);
}
}