Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f9f0d90334 |
@@ -186,7 +186,13 @@ Public Class MyMachGroupPanelM
|
|||||||
While nOutlineId <> GDB_ID.NULL
|
While nOutlineId <> GDB_ID.NULL
|
||||||
' verifico che sia feature
|
' verifico che sia feature
|
||||||
If EgtExistsInfo(nOutlineId, MGR_FTR_PRC) Then
|
If EgtExistsInfo(nOutlineId, MGR_FTR_PRC) Then
|
||||||
If EgtExistsInfo(nOutlineId, MGR_FTR_PRID) Then
|
Dim nCurrPrId As Integer = GDB_ID.NULL
|
||||||
|
If EgtGetInfo(nOutlineId, MGR_FTR_PRID, nCurrPrId) AndAlso nCurrPrId <> GDB_ID.NULL Then
|
||||||
|
If nCurrPrId < nPRId Then
|
||||||
|
EgtSetInfo(nOutlineId, MGR_FTR_PRID, nPRId)
|
||||||
|
nPRId += 1
|
||||||
|
End If
|
||||||
|
nPRId = Math.Max(nPRId - 1, nCurrPrId) + 1
|
||||||
nOutlineId = EgtGetNext(nOutlineId)
|
nOutlineId = EgtGetNext(nOutlineId)
|
||||||
Continue While
|
Continue While
|
||||||
Else
|
Else
|
||||||
@@ -225,7 +231,14 @@ Public Class MyMachGroupPanelM
|
|||||||
Dim nPRC As Integer
|
Dim nPRC As Integer
|
||||||
If EgtGetInfo(nOutlineId, MGR_FTR_PRC, nPRC) Then
|
If EgtGetInfo(nOutlineId, MGR_FTR_PRC, nPRC) Then
|
||||||
nPRId = 0
|
nPRId = 0
|
||||||
If Not EgtGetInfo(nOutlineId, MGR_FTR_PRID, nPRId) Then
|
If EgtGetInfo(nOutlineId, MGR_FTR_PRID, nPRId) Then
|
||||||
|
If nPRId < nGlobPRId Then
|
||||||
|
EgtSetInfo(nOutlineId, MGR_FTR_PRID, nGlobPRId)
|
||||||
|
nPRId = nGlobPRId
|
||||||
|
nGlobPRId += 1
|
||||||
|
End If
|
||||||
|
nGlobPRId = Math.Max(nGlobPRId - 1, nPRId) + 1
|
||||||
|
Else
|
||||||
EgtSetInfo(nOutlineId, MGR_FTR_PRID, nGlobPRId)
|
EgtSetInfo(nOutlineId, MGR_FTR_PRID, nGlobPRId)
|
||||||
nPRId = nGlobPRId
|
nPRId = nGlobPRId
|
||||||
nGlobPRId += 1
|
nGlobPRId += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user