fixed bug #3319 (cherry picked from commit 4f9c081dc313f8fdfee3f0a4572779ae13e27e40)
fixed bug #3319
(cherry picked from commit 4f9c081dc313f8fdfee3f0a4572779ae13e27e40)

opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv