From 808190c02e3cfa1b650a01f30ef53bf235cb3dc1 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Thu, 29 Jul 2010 13:26:01 +0000 Subject: [PATCH] fixed LineIterator constructor in order to make LineIterator::pos() work properly (#408) --- modules/core/src/drawing.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/src/drawing.cpp b/modules/core/src/drawing.cpp index 11611f2ed..be1e013db 100644 --- a/modules/core/src/drawing.cpp +++ b/modules/core/src/drawing.cpp @@ -229,8 +229,8 @@ LineIterator::LineIterator(const Mat& img, Point pt1, Point pt2, } this->ptr0 = img.data; - this->step = (int)step; - this->elemSize = bt_pix; + this->step = (int)img.step; + this->elemSize = bt_pix0; } static void