Skip to content

Commit da1d076

Browse files
core: fix variable substitution for LAYOUT (#778)
1 parent f7f0c9c commit da1d076

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderer/widgets/IWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ static void replaceAllLayout(std::string& str) {
116116
const CVarList LANGS(REPL);
117117
if (LAYOUTIDX >= LANGS.size()) {
118118
Debug::log(ERR, "Layout index {} out of bounds. Max is {}.", LAYOUTIDX, LANGS.size() - 1);
119-
continue;
119+
return;
120120
}
121121

122122
const std::string LANG = LANGS[LAYOUTIDX].empty() ? layoutName : LANGS[LAYOUTIDX] == "!" ? "" : LANGS[LAYOUTIDX];

0 commit comments

Comments
 (0)