Skip to content

Commit

Permalink
The export log was littered with bunch of warnings about unclosed blo…
Browse files Browse the repository at this point in the history
…cks. This seems to be due to not closing it when evaluating the UseTheme. Even if we skipped it, we still need to remove it from m_colBlocks to balance everything out.
  • Loading branch information
bclothier committed Oct 19, 2023
1 parent 4703b7b commit 0d9ac0a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Version Control.accda.src/modules/modSanitize.bas
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,12 @@ Private Sub CloseBlock()

' Skip if we are not using themes for this control (UseTheme=0)
' (Applies to "CommandButton", "Tab", "ToggleButton")
If dBlock.Exists("UseTheme") Then Exit Sub

If dBlock.Exists("UseTheme") Then
' Remove this block
m_colBlocks.Remove m_colBlocks.Count
Exit Sub
End If

' Build array of base properties
varBase = Array("Back", "AlternateBack", "Border", _
"Fore", "Gridline", "HoverFore", _
Expand Down

0 comments on commit 0d9ac0a

Please sign in to comment.