B2017-040 Allow range transitions start and end at different step levels

This commit is contained in:
John Jenko 2017-03-08 19:39:31 +00:00
parent 17b402ab95
commit 36ed82ba43

View File

@ -1127,7 +1127,7 @@ namespace Volian.Controls.Library
Boolean switchIds = false;
// check for order of hls first, then do within sibling list.
if (toItem.MyHLS.Ordinal > rangeItem.MyHLS.Ordinal) switchIds = true;
else if (toItem.Ordinal > rangeItem.Ordinal) switchIds = true;
else if ((toItem.StepLevel == rangeItem.StepLevel) && toItem.Ordinal > rangeItem.Ordinal) switchIds = true; // B2017-040 don't switch if To and From HLS are not the same
if (switchIds)
{
ItemInfo switchItem = toItem;