Fix endless loop/crash after resetting layout
This commit is contained in:
@@ -64,6 +64,11 @@ Public Class RefreshHelper
|
||||
Private Function FindParentRowHandle(pRowInfo As RowInfo, oRowHandle As Integer) As Integer
|
||||
Dim oParentRowHandle As Integer = _View.GetParentRowHandle(oRowHandle)
|
||||
|
||||
' Fixes endless loop when parent row handle is below zero
|
||||
If oParentRowHandle < 0 Then
|
||||
Return oParentRowHandle
|
||||
End If
|
||||
|
||||
Do While _View.GetRowLevel(oParentRowHandle) <> pRowInfo.Level
|
||||
oParentRowHandle = _View.GetParentRowHandle(oParentRowHandle)
|
||||
Loop
|
||||
|
||||
Reference in New Issue
Block a user