handle edge case clicking outside of data

This commit is contained in:
haven1433
2024-06-01 10:35:07 -05:00
parent 92360f662b
commit 2fee8d5eec

View File

@@ -256,6 +256,7 @@ namespace HavenSoft.HexManiac.Core.ViewModels {
if (compositeLine >= 0) line = compositeLine;
var range = childrenSelection[childIndex];
if (compositeChildIndex == -1 && range is SelectionRangeGroup) return;
if (range is SelectionRangeGroup group) range = group[compositeChildIndex];
if (child.Model.GetNextRun(child.DataOffset) is ITableRun) {