vcl/source/control/ilstbox.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit 3e6d47408db3717690515fcb8051dddd8fb3d9a6 Author: Caolán McNamara <caol...@redhat.com> Date: Fri Sep 4 15:09:30 2015 +0100 missing part of natural sort commit Change-Id: I8cf86d69cfed220c940a5a3d499790d82b7ba319 diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx index a52d34a..87b17e9 100644 --- a/vcl/source/control/ilstbox.cxx +++ b/vcl/source/control/ilstbox.cxx @@ -25,6 +25,7 @@ #include <vcl/scrbar.hxx> #include <vcl/help.hxx> #include <vcl/lstbox.h> +#include <vcl/lstbox.hxx> #include <vcl/unohelp.hxx> #include <vcl/i18nhelp.hxx> @@ -112,6 +113,12 @@ namespace }; } +sal_Int32 ListBox::NaturalSortCompare(const OUString &rA, const OUString &rB) +{ + const comphelper::string::NaturalStringSorter &rSorter = theSorter::get(); + return rSorter.compare(rA, rB); +} + sal_Int32 ImplEntryList::InsertEntry( sal_Int32 nPos, ImplEntryType* pNewEntry, bool bSort ) { if (nPos < 0 || LISTBOX_MAX_ENTRIES <= maEntries.size())
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits