Commit 6f04385a authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #5379 from sturkmen72:patch-9

parents d430e802 dff9d228
......@@ -1909,7 +1909,8 @@ static void showSaveDialog(CvWindow* window)
if (GetSaveFileName(&ofn))
{
cv::Mat tmp; cv::flip(cv::Mat(sz.cy, sz.cx, CV_8UC(channels), data), tmp, 0);
cv::Mat tmp;
cv::flip(cv::Mat(sz.cy, sz.cx, CV_8UC(channels), data, (sz.cx * channels + 3) & -4), tmp, 0);
cv::imwrite(szFileName, tmp);
}
}
......
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