From 8d1299338e033e1de539dae36856e365855fabc1 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sun, 20 Apr 2008 17:46:12 +0000 Subject: Fixed installing of dejavusans.ttf font. --- src/gui/gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index db0d1905..d9c8f1ce 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -111,14 +111,14 @@ Gui::Gui(Graphics *graphics): // Set global font std::string path = resman->getPath("fonts/dejavusans.ttf"); - if (path != "") + if (!path.empty()) { mGuiFont = new TrueTypeFont(path.c_str(), 11); } // Set speech font path = resman->getPath("fonts/dejavusans.ttf"); - if (path != "") + if (!path.empty()) { speechFont = new TrueTypeFont(path.c_str(), 11); } -- cgit v1.2.3-70-g09d2