소스 검색

Added parenthesis

Added parenthesis to avoid turning height into a true/false evaluation
result.
Nathan Bowhay 10 년 전
부모
커밋
246df9c454
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)
    {