Skip to content

Commit

Permalink
More code cleanup from patches and fixing warnings
Browse files Browse the repository at this point in the history
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@1012 d0cd1f9f-072b-0410-8dd7-cf729c803f20
  • Loading branch information
theraysmith@gmail.com committed Jan 24, 2014
1 parent 0d93bb7 commit cd15c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cube/bmp_8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit cd15c5e

Please sign in to comment.