summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;