diff options
Diffstat (limited to 'src/text.cpp')
-rw-r--r-- | src/text.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/text.cpp b/src/text.cpp index a665de641..c4540dd4c 100644 --- a/src/text.cpp +++ b/src/text.cpp @@ -56,8 +56,8 @@ Text::Text(const std::string &text, mXOffset(0), mText(text), mColor(color), - mOutlineColor(isSpeech == Speech_true ? - *color : theme->getColor(ThemeColorId::OUTLINE, 255)), + mOutlineColor(color ? (isSpeech == Speech_true ? + *color : theme->getColor(ThemeColorId::OUTLINE, 255)) : Color()), mIsSpeech(isSpeech), mTextChanged(true) { |