Replace markers with the same priority

pull/137/head
Hleb Valoshka 2018-11-22 17:45:06 +03:00
parent a89e40a856
commit 8592f59246
1 changed files with 2 additions and 2 deletions

View File

@ -175,9 +175,9 @@ void Universe::markObject(const Selection& sel,
if (iter != markers->end())
{
// Handle the case when the object is already marked. If the
// priority is higher than the existing marker, replace it.
// priority is higher or equal to the existing marker, replace it.
// Otherwise, do nothing.
if (priority > iter->priority())
if (priority >= iter->priority())
markers->erase(iter);
else
return;