summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-03-28 14:24:51 -0600
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-06 23:18:03 +0200
commitcba63e9483ec8d3024e9c0a16f78c6b20cbae7cc (patch)
tree28aa802b6127d35e7c769133342b886533d66729
parentcabcfa72cbe87f033304d403c279e525a7af93c7 (diff)
downloadmana-client-cba63e9483ec8d3024e9c0a16f78c6b20cbae7cc.tar.gz
mana-client-cba63e9483ec8d3024e9c0a16f78c6b20cbae7cc.tar.bz2
mana-client-cba63e9483ec8d3024e9c0a16f78c6b20cbae7cc.tar.xz
mana-client-cba63e9483ec8d3024e9c0a16f78c6b20cbae7cc.zip
Removed some unneeded extra spacing in the speechbubble.
Signed-off-by: Ira Rice <irarice@gmail.com> Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
-rw-r--r--src/gui/speechbubble.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/speechbubble.cpp b/src/gui/speechbubble.cpp
index 2f765ab0..615bbe77 100644
--- a/src/gui/speechbubble.cpp
+++ b/src/gui/speechbubble.cpp
@@ -80,9 +80,9 @@ void SpeechBubble::setText(std::string text, bool showName)
const int fontHeight = getFont()->getHeight();
const int nameHeight = showName ? mCaption->getHeight() +
- getPadding() / 2 : 0;
+ getPadding() : 0;
const int numRows = mSpeechBox->getNumberOfRows();
- const int height = (numRows * fontHeight) + nameHeight + 2 * getPadding();
+ const int height = (numRows * fontHeight) + nameHeight + getPadding();
if (width < speechWidth)
width = speechWidth;