summaryrefslogtreecommitdiff
path: root/src/gui/serverdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-27 16:20:49 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-27 23:15:05 +0300
commitfa0ef1ff62b23e830c70f6168f6256a1937b8195 (patch)
tree3a81237a324839d7bff56ceac3c388a32b16b6ae /src/gui/serverdialog.cpp
parent697e5bbf3171b0ba1fbbc0bbe61461c7726bf1ce (diff)
downloadmanaverse-fa0ef1ff62b23e830c70f6168f6256a1937b8195.tar.gz
manaverse-fa0ef1ff62b23e830c70f6168f6256a1937b8195.tar.bz2
manaverse-fa0ef1ff62b23e830c70f6168f6256a1937b8195.tar.xz
manaverse-fa0ef1ff62b23e830c70f6168f6256a1937b8195.zip
Fix font usage in some controls.
Diffstat (limited to 'src/gui/serverdialog.cpp')
-rw-r--r--src/gui/serverdialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp
index 926b9332a..c8555650f 100644
--- a/src/gui/serverdialog.cpp
+++ b/src/gui/serverdialog.cpp
@@ -613,6 +613,8 @@ void ServerDialog::loadServers(const bool addNew)
else
version = strprintf(_("requires v%s"), version.c_str());
+ gcn::Font *font = gui->getFont();
+
for_each_xml_child_node(subNode, serverNode)
{
if (xmlNameEqual(subNode, "connection"))
@@ -641,7 +643,7 @@ void ServerDialog::loadServers(const bool addNew)
}
}
- server.version.first = gui->getFont()->getWidth(version);
+ server.version.first = font->getWidth(version);
server.version.second = version;
MutexLocker tempLock(&mMutex);