From b07f9c8add5905efb9b3f4cefa50898e69f06ebc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 27 Mar 2018 03:07:28 +0300 Subject: Fix possible draw issue after speechbuble was created. --- src/being/being.cpp | 1 - src/gui/popups/speechbubble.cpp | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.3-70-g09d2