mirror of
https://github.com/opencv/opencv.git
synced 2025-08-05 22:19:14 +08:00
Adding fix for issue 5451 "putText fails with empty std::string"
This commit is contained in:
parent
6025738b8b
commit
dff7037156
@ -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…
Reference in New Issue
Block a user