Merge pull request #18895 from oravital7:flip-module

This commit is contained in:
Alexander Alekhin 2020-11-23 17:18:59 +00:00
commit bf0846f0ea

View File

@ -1032,8 +1032,7 @@ void flip( InputArray _src, OutputArray _dst, int flip_mode )
}
if ((size.width == 1 && flip_mode > 0) ||
(size.height == 1 && flip_mode == 0) ||
(size.height == 1 && size.width == 1 && flip_mode < 0))
(size.height == 1 && flip_mode == 0))
{
return _src.copyTo(_dst);
}