提交 7acda5cb 编写于 作者: S Stefan Weil

Fix cloning of Image with pix_ == nullptr (issue #537)

Signed-off-by: NStefan Weil <sw@weilnetz.de>
上级 feb32ecb
......@@ -22,7 +22,7 @@
namespace tesseract {
Image Image::clone() const {
return pixClone(pix_);
return pix_ ? pixClone(pix_) : nullptr;
}
Image Image::copy() const {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册