[Libreoffice-commits] core.git: linguistic/source
Caolán McNamara
caolanm at redhat.com
Sat Apr 7 19:04:34 UTC 2018
linguistic/source/dicimp.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit e3104eb246bdf623ad01fee8ba192a4926cb264c
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Apr 6 21:18:57 2018 +0100
assert on empty line
Change-Id: Ifa3cccb13a3595998d4c85957a69fb7ecb047dd0
Reviewed-on: https://gerrit.libreoffice.org/52525
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx
index b2208a7ca876..12c82f461401 100644
--- a/linguistic/source/dicimp.cxx
+++ b/linguistic/source/dicimp.cxx
@@ -376,7 +376,7 @@ ErrCode DictionaryNeo::loadEntries(const OUString &rMainURL)
// remaining lines - stock strings (a [==] b)
while (pStream->ReadLine(aLine))
{
- if (aLine[0] == '#') // skip comments
+ if (aLine.isEmpty() || aLine[0] == '#') // skip comments
continue;
OUString aText = OStringToOUString(aLine, RTL_TEXTENCODING_UTF8);
uno::Reference< XDictionaryEntry > xEntry =
More information about the Libreoffice-commits
mailing list