Adding fix for issue 5451 "putText fails with empty std::string"

This commit is contained in:
Aman Verma 2015-10-06 14:23:27 +00:00
parent 6025738b8b
commit dff7037156

View File

@ -2090,6 +2090,10 @@ void putText( InputOutputArray _img, const String& text, Point org,
int thickness, int line_type, bool bottomLeftOrigin )
{
if ( text.empty() )
{
return;
}
Mat img = _img.getMat();
const int* ascii = getFontData(fontFace);