Commit 2256f42b25d6f8800ee587664178aae0c9713789

Authored by Scott Klum
1 parent 11e30e27

Pad bug fix

openbr/plugins/imgproc/pad.cpp
@@ -36,7 +36,7 @@ private: @@ -36,7 +36,7 @@ private:
36 int top, bottom, left, right; 36 int top, bottom, left, right;
37 top = percent*src.m().rows; bottom = percent*src.m().rows; 37 top = percent*src.m().rows; bottom = percent*src.m().rows;
38 left = percent*src.m().cols; right = percent*src.m().cols; 38 left = percent*src.m().cols; right = percent*src.m().cols;
39 - OpenCVUtils::pad(src, dst, true, QMargins(top,bottom,left,right), true, true, border, value); 39 + OpenCVUtils::pad(src, dst, true, QMargins(left, top, right, bottom), true, true, border, value);
40 } 40 }
41 }; 41 };
42 42