Explorar o código

Added parenthesis

Added parenthesis to avoid turning height into a true/false evaluation
result.
Nathan Bowhay %!s(int64=10) %!d(string=hai) anos
pai
achega
246df9c454
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Engine/source/gui/controls/guiMLTextCtrl.cpp

+ 1 - 1
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)
    {