Skip to content

Commit 7f2148c

Browse files
committed
Merge remote-tracking branch 'GitHub/PROGrand/patch-1'
2 parents ca1e6c4 + 5c276d2 commit 7f2148c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/utils.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,11 @@ QImage removeBorder(const QImage & mask_id, const Id2Labels & labels, cv::Size w
161161
bool isFullZero(const QImage& image) {
162162
for (int y = 0; y < image.height(); y++) {
163163
const uchar * line = image.scanLine(y);
164-
for (int x = 0; x < image.width(); x++) {
164+
for (int x = 0; x < image.bytesPerLine(); x++) {
165165
if (line[x] > 0)
166166
return false;
167167
}
168168
}
169169
return true;
170170
}
171-
//-------------------------------------------------------------------------------------------------------------
171+
//-------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)