CLuaInstCCWindow: try to fix window title align parameter

Additional (lua_Integer)CTextBox::NO_AUTO_LINEBREAK) overwrites
passed parameter and has no effect, because NO_AUTO_LINEBREAK is
already default.
This commit is contained in:
2017-05-10 10:42:08 +02:00
parent 5b541571f9
commit 27eb80eb5b
2 changed files with 2 additions and 2 deletions

View File

@@ -224,7 +224,7 @@ int CLuaInstCCWindow::CCWindowSetCaption(lua_State *L)
lua_Integer alignment = (lua_Integer)CTextBox::NO_AUTO_LINEBREAK;
tableLookup(L, "alignment", alignment);
D->w->setWindowCaption(name, alignment | (lua_Integer)CTextBox::NO_AUTO_LINEBREAK);
D->w->setWindowCaption(name, alignment);
return 0;
}