From 432d16435774cafd630e287321e882f3e8510d16 Mon Sep 17 00:00:00 2001 From: Chuck Miller Date: Mon, 15 Feb 2010 19:20:10 -0500 Subject: Revert "Attempt to fix Minimap caption again..." This reverts commit 20d2a17c8c0fa9220c257d61641a6459e154de26. Going to try to remove this fix, people have still been reporting crashes with minimap caption. Maybe if more people report it, we can get more information. --- src/gui/minimap.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gui/minimap.cpp') diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp index 7904d4fa..59513323 100644 --- a/src/gui/minimap.cpp +++ b/src/gui/minimap.cpp @@ -77,9 +77,12 @@ Minimap::~Minimap() void Minimap::setMap(Map *map) { // Set the title for the Minimap - std::string caption = map ? map->getName() : ""; + std::string caption = ""; std::string minimapName; + if (map) + caption = map->getName(); + if (caption.empty()) caption = _("Map"); -- cgit v1.2.3-70-g09d2