From 5344dc6cd9156a9b67da834c9b5b4be00a62992a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 26 Jun 2015 00:41:35 +0300 Subject: Add missing checks into other files. --- src/text.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/text.cpp') 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) { -- cgit v1.2.3-70-g09d2