summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-03-27 03:07:28 +0300
committerAndrei Karas <akaras@inbox.ru>2018-03-27 03:07:28 +0300
commitb07f9c8add5905efb9b3f4cefa50898e69f06ebc (patch)
tree1e0d9b0c82f4042b9bb3ef758c7a606e2d03f289 /src
parentf82f0c049c8484de401cdc724d44f1dc48b0c648 (diff)
downloadmv-b07f9c8add5905efb9b3f4cefa50898e69f06ebc.tar.gz
mv-b07f9c8add5905efb9b3f4cefa50898e69f06ebc.tar.bz2
mv-b07f9c8add5905efb9b3f4cefa50898e69f06ebc.tar.xz
mv-b07f9c8add5905efb9b3f4cefa50898e69f06ebc.zip
Fix possible draw issue after speechbuble was created.
Diffstat (limited to 'src')
-rw-r--r--src/being/being.cpp1
-rw-r--r--src/gui/popups/speechbubble.cpp1
2 files changed, 1 insertions, 1 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 74750aa44..acea75bd4 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -2436,7 +2436,6 @@ void Being::drawSpeech(const int offsetX,
mSpeechBubble->setPosition(px - (mSpeechBubble->getWidth() / 2),
py - getHeight() - (mSpeechBubble->getHeight()));
mSpeechBubble->setVisible(Visible_true);
- mSpeechBubble->requestMoveToBackground();
}
}
else if (mSpeechTime > 0 && speech == BeingSpeech::TEXT_OVERHEAD)
diff --git a/src/gui/popups/speechbubble.cpp b/src/gui/popups/speechbubble.cpp
index cbfafba5d..e1840f260 100644
--- a/src/gui/popups/speechbubble.cpp
+++ b/src/gui/popups/speechbubble.cpp
@@ -58,6 +58,7 @@ void SpeechBubble::postInit()
Popup::postInit();
add(mCaption);
add(mSpeechBox);
+ requestMoveToBackground();
}
void SpeechBubble::setCaption(const std::string &name,