1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-31 09:05:14 +01:00

Fixed broken points ordering

This commit is contained in:
Martin Tůma 2022-11-11 10:40:59 +01:00
parent 4f1f3e569b
commit 9b73b0f70e

View File

@ -57,7 +57,7 @@ static QMap<uint,uint> orderMap = orderMapInit();
static uint order(uint type) static uint order(uint type)
{ {
uint st = (type>>16 == BUAARE) ? type : type && 0xFFFF; uint st = (type>>16 == BUAARE) ? type : type & 0xFFFF;
QMap<uint, uint>::const_iterator it = orderMap.find(st); QMap<uint, uint>::const_iterator it = orderMap.find(st);
return (it == orderMap.constEnd()) ? type + 512 : it.value(); return (it == orderMap.constEnd()) ? type + 512 : it.value();
} }