Skip to content

Commit

Permalink
Merge pull request joyfullservice#446 from bclothier/MiscBugFixes
Browse files Browse the repository at this point in the history
Misc bug fixes
  • Loading branch information
joyfullservice authored Oct 19, 2023
2 parents 6cdac0c + 0d9ac0a commit 8f2f325
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 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 Expand Up @@ -618,7 +622,11 @@ Public Function SanitizeXML(strPath As String, blnReturnHash As Boolean) As Stri
Set objXml = New MSXML2.DOMDocument60
End If

objXml.LoadXML strFile
If objXml.LoadXML(strFile) = False Then
Log.Error eelError, _
"Unable to parse the XML for file '" & strPath & "'. This may be due to containing malformed XML. Check the source XML document for validity. In some cases, this may be due to table data containing characters not allowed in XML documents.", ModuleName & ".SanitizeXML"
Exit Function
End If

' Determine if it's a table data with schema
For Each objNode In objXml.SelectNodes("/root/dataroot")
Expand Down
2 changes: 1 addition & 1 deletion Version Control.accda.src/modules/modVCSUtility.bas
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ Public Sub CheckGitFiles()
Dim strFile As String
Dim blnAdded As Boolean

strPath = CurrentProject.Path & PathSep
strPath = Options.GetExportFolder
If FSO.FolderExists(strPath & ".git") Then

' gitignore file
Expand Down

0 comments on commit 8f2f325

Please sign in to comment.