1
0
Fork 0

src/Viewer/splash.cxx: added some missing braces for clarity.

This commit is contained in:
Julian Smith 2022-03-18 22:35:18 +00:00
parent 662dad0848
commit 04ee8d95f5

View file

@ -580,13 +580,13 @@ void SplashScreen::doUpdate()
_splashFSQuadColor->dirty(); _splashFSQuadColor->dirty();
for (const TextItem& item : _items) { for (const TextItem& item : _items) {
if (item.condition != nullptr) if (item.condition != nullptr) {
if (item.condition->test()) if (item.condition->test())
item.textNode->setDrawMode(item.drawMode); item.textNode->setDrawMode(item.drawMode);
else else
item.textNode->setDrawMode(0); item.textNode->setDrawMode(0);
}
if (item.dynamicContent) { if (item.dynamicContent) {
item.textNode->setText( item.textNode->setText(
item.dynamicContent->getStringValue(), item.dynamicContent->getStringValue(),