mirror of
https://github.com/nihui/opencv-mobile.git
synced 2025-09-26 20:41:56 +08:00
check baseline null in cv::getTextSize() (#146)
This commit is contained in:
@@ -133,7 +133,7 @@ diff -Nuarp opencv-2.4.13.7.orig/modules/core/src/drawing.cpp opencv-2.4.13.7/mo
|
||||
+ int h;
|
||||
+ get_text_drawing_size(text.c_str(), fontpixelsize, &w, &h);
|
||||
+
|
||||
+ *_base_line = 0;
|
||||
+ if(_base_line) *_base_line = 0;
|
||||
+
|
||||
+ return Size(w, h);
|
||||
+#if 0
|
||||
|
@@ -135,7 +135,7 @@ diff -Nuarp opencv-3.4.20.orig/modules/imgproc/src/drawing.cpp opencv-3.4.20/mod
|
||||
+ int h;
|
||||
+ get_text_drawing_size(text.c_str(), fontpixelsize, &w, &h);
|
||||
+
|
||||
+ *_base_line = 0;
|
||||
+ if(_base_line) *_base_line = 0;
|
||||
+
|
||||
+ return Size(w, h);
|
||||
+#if 0
|
||||
|
@@ -135,7 +135,7 @@ diff -Nuarp opencv-4.10.0.orig/modules/imgproc/src/drawing.cpp opencv-4.10.0/mod
|
||||
+ int h;
|
||||
+ get_text_drawing_size(text.c_str(), fontpixelsize, &w, &h);
|
||||
+
|
||||
+ *_base_line = 0;
|
||||
+ if(_base_line) *_base_line = 0;
|
||||
+
|
||||
+ return Size(w, h);
|
||||
+#if 0
|
||||
|
Reference in New Issue
Block a user