mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
Fixed issue 1075
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@1029 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
parent
8eb1218adf
commit
bb2e46830f
@ -190,8 +190,8 @@ bool TessdataManager::OverwriteComponents(
|
||||
|
||||
// Open the files with the new components.
|
||||
for (i = 0; i < num_new_components; ++i) {
|
||||
TessdataTypeFromFileName(component_filenames[i], &type, &text_file);
|
||||
file_ptr[type] = fopen(component_filenames[i], "rb");
|
||||
if (TessdataTypeFromFileName(component_filenames[i], &type, &text_file))
|
||||
file_ptr[type] = fopen(component_filenames[i], "rb");
|
||||
}
|
||||
|
||||
// Write updated data to the output traineddata file.
|
||||
|
Loading…
Reference in New Issue
Block a user