Sketcher: GeoList - Fix bug in index conversion

This commit is contained in:
Abdullah Tahiri
2021-12-21 18:10:04 +01:00
committed by abdullahtahiriyo
parent 4bcca31b02
commit 9ce2eaf32e

View File

@@ -94,7 +94,7 @@ int GeoListModel<T>::getGeoIdFromGeomListIndex(int index) const
if(index < intGeoCount)
return index;
else
return -( index - intGeoCount);
return ( index - geomlist.size());
}
template <typename T>