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

pull/5459/head
Aman Verma 9 years ago
parent 6025738b8b
commit dff7037156
  1. 4
      modules/imgproc/src/drawing.cpp

@ -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);

Loading…
Cancel
Save