mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-06-07 09:52:40 +08:00
More code cleanup from patches and fixing warnings
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@1012 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
parent
0d93bb7cfa
commit
cd15c5e2c2
@ -971,7 +971,7 @@ bool Bmp8::LoadFromCharDumpFile(unsigned char **raw_data_ptr) {
|
||||
float Bmp8::ForegroundRatio() const {
|
||||
int fore_cnt = 0;
|
||||
|
||||
if (wid_ <= 0 || hgt_ <= 0) {
|
||||
if (wid_ == 0 || hgt_ == 0) {
|
||||
return 1.0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user