提交 b87fc523 编写于 作者: S Stefan Weil

Fix CID 1386084 (Uninitialized scalar variable)

The set_font method used the uninitialized member variable resolution_.
Signed-off-by: NStefan Weil <sw@weilnetz.de>
上级 e2135de0
......@@ -90,7 +90,8 @@ Pix* CairoARGB32ToPixFormat(cairo_surface_t *surface) {
StringRenderer::StringRenderer(const std::string& font_desc, int page_width,
int page_height)
: page_width_(page_width),
: font_(font_desc),
page_width_(page_width),
page_height_(page_height),
h_margin_(50),
v_margin_(50),
......@@ -118,7 +119,6 @@ StringRenderer::StringRenderer(const std::string& font_desc, int page_width,
total_chars_(0),
font_index_(0),
last_offset_(0) {
set_font(font_desc);
set_resolution(kDefaultOutputResolution);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册