Skip to content

Commit

Permalink
fix draw_string wrap bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Neutree committed May 30, 2024
1 parent 31cc350 commit 5237b42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/vision/src/maix_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -940,8 +940,8 @@ namespace maix::image
while (idx < text.length())
{
text_tmp += text[idx];
cv::Size size;
_get_text_size(size, text_tmp, *final_font, final_font_id, scale, thickness);
cv::Size size_tmp;
_get_text_size(size_tmp, text_tmp, *final_font, final_font_id, scale, thickness);
if (size_tmp.width >= text_max_width)
{
if (size_tmp.width > text_max_width)
Expand Down

0 comments on commit 5237b42

Please sign in to comment.