bugfix.patch

Ivan Astafyev, 2010-01-22 12:48 pm

Download (621 Bytes)

 
include/opencv/cxmat.hpp (working copy)
3376 3376
        Point pt = pos();
3377 3377
        int cols = m->cols;
3378 3378
        ofs += pt.y*cols + pt.x;
3379
        if( ofs > cols*m->rows )
3380
            ofs = cols*m->rows;
3379
        if( ofs > cols*m->rows ) // end of matrix
3380
        {
3381
            ptr = sliceEnd = (_Tp*)(m->data + m->step*(m->rows-1)) + cols;
3382
            return *this;
3383
        }
3381 3384
        else if( ofs < 0 )
3382 3385
            ofs = 0;
3383 3386
        pt.y = ofs/cols;