This commit is contained in:
berniev
2022-12-01 05:01:52 +10:00
committed by Uwe
parent 654d82d91c
commit a4693a2748

View File

@@ -72,7 +72,7 @@ int WorkbenchSwitcher::getIndex()
auto hGrp = getWSParameter();
std::string pos = hGrp->GetASCII("WSPosition", "WSToolbar");
auto wsPositions = values();
int index = std::max(0, wsPositions.indexOf(pos));
int index = std::max(0, static_cast<int>(wsPositions.indexOf(pos)));
return index;
}