Commit 097354f7 authored by Davis King's avatar Davis King

Fixed assign_border_pixels(img, rect) so that it correctly zeros

an image when an empty rectangle is supplied.  Previously, it just
did nothing to the image in this case.
parent 7f7a93a2
......@@ -337,7 +337,10 @@ namespace dlib
{
inside = inside.intersect(get_rect(img));
if (inside.is_empty())
{
assign_all_pixels(img, 0);
return;
}
for (long r = 0; r < inside.top(); ++r)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment