mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
fix issue 313
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@379 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
parent
12dc7e7364
commit
21014af90c
@ -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(), '/');
|
||||
|
Loading…
Reference in New Issue
Block a user