Commit 0b85d0ec authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #16721 from mshabunin:fix-msmf-format

parents 4d0f1354 219ef95d
......@@ -498,7 +498,7 @@ public:
best = *i;
break;
}
if (i->second.isBetterThan(best.second, newType))
if (best.second.isEmpty() || i->second.isBetterThan(best.second, newType))
{
best = *i;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment