diff --git a/PROMS/Volian.Controls.Library/DisplayTransition.cs b/PROMS/Volian.Controls.Library/DisplayTransition.cs index 8f35419f..66691d7e 100644 --- a/PROMS/Volian.Controls.Library/DisplayTransition.cs +++ b/PROMS/Volian.Controls.Library/DisplayTransition.cs @@ -802,7 +802,13 @@ namespace Volian.Controls.Library // if doing a 'new' range, no node is selected in tree. Without this, the first node in the // tree was the selected node which was throwing off the logic for defining the _RangeNode1 // and _RangeNode2 - if (_DoingRange) tvTran.SelectedNode = null; + if (_DoingRange) + { + tvTran.SelectedNode = null; + // if there was an existing range clear the range because the section selection had changed + // and these range values are no longer valid. + if (_RangeNode1 != null || _RangeNode2 != null) _RangeNode1 = _RangeNode2 = null; + } _InitializingTrans = false; } }