From 246df9c454bf6c83d980ed3c8d86214d556c26e7 Mon Sep 17 00:00:00 2001 From: Nathan Bowhay Date: Thu, 12 Feb 2015 08:25:16 -0800 Subject: [PATCH] Added parenthesis Added parenthesis to avoid turning height into a true/false evaluation result. --- Engine/source/gui/controls/guiMLTextCtrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/gui/controls/guiMLTextCtrl.cpp b/Engine/source/gui/controls/guiMLTextCtrl.cpp index 62141540a..72a5258f7 100644 --- a/Engine/source/gui/controls/guiMLTextCtrl.cpp +++ b/Engine/source/gui/controls/guiMLTextCtrl.cpp @@ -669,7 +669,7 @@ void GuiMLTextCtrl::getCursorPositionAndColor(Point2I &cursorTop, Point2I &curso { S32 x = 0; S32 y = 0; - S32 height = mProfile && mProfile->mFont ? mProfile->mFont->getHeight() : 0; + S32 height = (mProfile && mProfile->mFont) ? mProfile->mFont->getHeight() : 0; color = mProfile->mCursorColor; for(Line *walk = mLineList; walk; walk = walk->next) {