Fix warnings reported by Clang

This commit is contained in:
Lynix
2017-02-17 00:21:28 +01:00
parent c8d046158c
commit dc158d06a8
11 changed files with 38 additions and 40 deletions

View File

@@ -365,12 +365,14 @@ namespace Nz
{
case '\n':
{
// Extend the line bounding rect to the last glyph it contains, thus extending upon all glyphs of the line
if (!m_glyphs.empty())
{
Glyph& glyph = m_glyphs.back();
Glyph& lastGlyph = m_glyphs.back();
m_lines.back().bounds.ExtendTo(glyph.bounds);
}
// Reset cursor
advance = 0;
m_drawPos.x = 0;
m_drawPos.y += sizeInfo.lineHeight;