From 6b24870ab5db8551bc232b94ea008c8a1b11c628 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20K=C3=BCmmel?= Date: Mon, 14 Feb 2011 19:54:04 +0000 Subject: [PATCH] fix msvc warning, somehow msvc thinks !line[0] is a boolean git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37662 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/PersonalWordList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PersonalWordList.cpp b/src/PersonalWordList.cpp index a0a8726eb6..75dcda6aa7 100644 --- a/src/PersonalWordList.cpp +++ b/src/PersonalWordList.cpp @@ -61,7 +61,7 @@ void PersonalWordList::load() if (line == header()) { while (ifs) { getline(ifs, line); - if (!line.empty() && !line[0] == '#') { + if (!line.empty() && !(line[0] == '#')) { docstring const word = from_utf8(line); insert(word); }