Fix out of bounds access.

BUG: 396099
This commit is contained in:
Andrius Štikonas 2018-07-07 14:12:25 +01:00
parent 30815be85c
commit cc43e8b706
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ FileSystem::Type defaultFileSystem()
std::vector<QColor> fileSystemColorCodesFromSettings()
{
std::vector<QColor> cc;
cc.reserve(Config::EnumFileSystem::type::COUNT);
cc.resize(Config::EnumFileSystem::type::COUNT);
for (int i = 0; i < Config::EnumFileSystem::type::COUNT; ++i)
{
cc[i] = Config::fileSystemColorCode(i);