From 78da4a40a186fd4eb89656207c62d0f26b356ceb Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 29 Feb 2016 22:21:21 -0300 Subject: [PATCH] Avoid warning on Graphics::drawUIString() --- src/ui/graphics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/graphics.cpp b/src/ui/graphics.cpp index f19c1b8eb..a6dcb973d 100644 --- a/src/ui/graphics.cpp +++ b/src/ui/graphics.cpp @@ -1,5 +1,5 @@ // Aseprite UI Library -// Copyright (C) 2001-2015 David Capello +// Copyright (C) 2001-2016 David Capello // // This file is released under the terms of the MIT license. // Read LICENSE.txt for more information. @@ -225,7 +225,7 @@ void Graphics::drawUIString(const std::string& str, gfx::Color fg, gfx::Color bg base::utf8_const_iterator it(str.begin()), end(str.end()); int x = m_dx+pt.x; int y = m_dy+pt.y; - int underscored_x; + int underscored_x = 0; int underscored_w = -1; while (it != end) {