When reporting the column number, start counting at 1 instead of 0.

This is more user-friendly.
This commit is contained in:
Olivier Teulière 2013-09-25 20:54:20 +02:00
parent fdc5e989ec
commit 9d88250b25

View file

@ -271,7 +271,7 @@ unsigned int CompDic::makeNode(ostream &outFile, const Header &iHeader,
ostringstream oss; ostringstream oss;
oss << fmt(_("Error in the word list on line %1%, col %2%: %3%")) oss << fmt(_("Error in the word list on line %1%, col %2%: %3%"))
% (1 + m_headerInfo.nwords) % (1 + m_headerInfo.nwords)
% (m_endString - m_stringBuf) % (1 + m_endString - m_stringBuf)
% e.what() << endl; % e.what() << endl;
throw DicException(oss.str()); throw DicException(oss.str());
} }