From d8ed0b7e0c9015ee5f8212e6325b3b99b96c6e54 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 5 Jun 2011 20:25:31 +0300 Subject: Add space before gender sign. --- src/being.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/being.cpp') diff --git a/src/being.cpp b/src/being.cpp index 35fe6052c..d45bbcf74 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -1455,6 +1455,15 @@ void Being::flashName(int time) mDispName->flash(time); } +std::string Being::getGenderSignWithSpace() const +{ + const std::string &str = getGenderSign(); + if (str.empty()) + return str; + else + return " " + str; +} + std::string Being::getGenderSign() const { if (config.getBoolValue("showgender")) -- cgit v1.2.3-60-g2f50