mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 14:41:36 +08:00
Fixed access to uninitialized variable
Coverity ID: 1386084 the set_font method has accessed resolution_ before it was initialized by the set_resolution method. Signed-off-by: Noah Metzger <noah.metzger@bib.uni-mannheim.de>
This commit is contained in:
parent
984a9817fe
commit
a7d1402e5d
@ -120,6 +120,7 @@ StringRenderer::StringRenderer(const std::string& font_desc, int page_width,
|
||||
font_index_(0),
|
||||
last_offset_(0) {
|
||||
set_resolution(kDefaultOutputResolution);
|
||||
set_font(font_desc);
|
||||
}
|
||||
|
||||
bool StringRenderer::set_font(const std::string& desc) {
|
||||
|
Loading…
Reference in New Issue
Block a user