fix issue 313

git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@379 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
joregan 2010-05-28 00:30:11 +00:00
parent 12dc7e7364
commit 21014af90c

View File

@ -74,7 +74,7 @@ void LearnBlob(const STRING& filename,
// If no fontname was set, try to extract it from the filename
STRING CurrFontName = classify_font_name;
if (CurrFontName != kUnknownFontName) {
if (CurrFontName == kUnknownFontName) {
// filename is expected to be of the form [lang].[fontname].exp[num]
// The [lang], [fontname] and [num] fields should not have '.' characters.
const char *basename = strrchr(filename.string(), '/');