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:
theraysmith@gmail.com 2014-01-24 21:11:56 +00:00
parent 0d93bb7cfa
commit cd15c5e2c2

View File

@ -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;
}