We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34efcd4 commit 7dcfd68Copy full SHA for 7dcfd68
ccstruct/blobbox.h
@@ -476,7 +476,8 @@ class BLOBNBOX:public ELIST_LINK
476
right_rule_ = 0;
477
left_crossing_rule_ = 0;
478
right_crossing_rule_ = 0;
479
- if (area_stroke_width_ == 0.0f && area > 0 && cblob() != NULL)
+ if (area_stroke_width_ == 0.0f && area > 0 && cblob() != NULL
480
+ && cblob()->perimeter()!=0)
481
area_stroke_width_ = 2.0f * area / cblob()->perimeter();
482
owner_ = NULL;
483
base_char_top_ = box.top();
0 commit comments