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:
Noah Metzger 2018-05-02 16:00:44 +02:00
parent 984a9817fe
commit a7d1402e5d

View File

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