Skip to content

Commit 70d4944

Browse files
committed
Merge pull request opencv#10369 from alalek:issue_10351
2 parents a2620f7 + 7bbe1a5 commit 70d4944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/imgcodecs/src/grfmt_pxm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ bool PxMDecoder::readData( Mat& img )
333333
}
334334
}
335335
else
336-
memcpy( data, src, CV_ELEM_SIZE1(m_type)*m_width);
336+
memcpy(data, src, img.elemSize1()*m_width);
337337
}
338338
else
339339
{

0 commit comments

Comments
 (0)