tdf#107939 Fix case-insensitive filter in Field Dialog

Change-Id: I38e695b43ffa7b213e60993aed3ac1838548b33d
Reviewed-on: https://gerrit.libreoffice.org/44307
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
diff --git a/sw/source/ui/fldui/fldref.cxx b/sw/source/ui/fldui/fldref.cxx
index a427e8b..d8e1fc7 100644
--- a/sw/source/ui/fldui/fldref.cxx
+++ b/sw/source/ui/fldui/fldref.cxx
@@ -734,8 +734,8 @@ bool SwFieldRefPage::MatchSubstring( const OUString& rListString, const OUString
{
    if(rSubstr.isEmpty())
        return true;
    OUString aListString = rListString.toAsciiLowerCase();
    OUString aSubstr = rSubstr.toAsciiLowerCase();
    OUString aListString = GetAppCharClass().lowercase(rListString);
    OUString aSubstr = GetAppCharClass().lowercase(rSubstr);
    return aListString.indexOf(aSubstr) >= 0;
}