Skip to content

Commit

Permalink
0.9.5.2 - Peppermint: Fix exception on Add Conditional dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
dotcomboom committed Sep 21, 2019
1 parent e02a4e8 commit 9dcf8f1
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 46 deletions.
5 changes: 4 additions & 1 deletion About.resx
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,10 @@ SOFTWARE.</value>
</value>
</data>
<data name="ChangelogBox.Text" xml:space="preserve">
<value>0.9.5.1 - Cocoa:
<value>0.9.5.2 - Peppermint:
* Fixed exception on Add Conditional dialog when using main editor options

0.9.5.1 - Cocoa:
* Removed debug PropertyGrid from editor

0.9.5 - Chocolate Milk:
Expand Down
65 changes: 32 additions & 33 deletions AddConditional.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion AddConditional.resx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
iAVkBSI0GtcDMSOKASTg+0AsCNYMAiADKMFYBUnBWAWJx/8ZAJTvnaUbCipuAAAAAElFTkSuQmCC
</value>
</data>
<data name="FastColoredTextBox1.ServiceColors" mimetype="application/x-microsoft.net.object.binary.base64">
<data name="Display.ServiceColors" mimetype="application/x-microsoft.net.object.binary.base64">
<value>
AAEAAAD/////AQAAAAAAAAAMAgAAAFdGYXN0Q29sb3JlZFRleHRCb3gsIFZlcnNpb249Mi4xNi4yNi4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWZiOGFhMTJiOTk0ZWY2MWIMAwAAAFFTeXN0
Expand Down
18 changes: 8 additions & 10 deletions AddConditional.vb
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@ Public Class AddConditional
Public output = ""

Private Sub OK_Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_Button.Click
Dim out = ""
Dim ineq = ""
If Yesnt.Checked Then
ineq = "!"
End If
For Each line In FastColoredTextBox1.Lines
If Not out = "" Then
out &= vbNewLine
For Each line In Display.Lines
If Not output = "" Then
output &= vbNewLine
End If
out &= "[" & Attribute.Text & ineq & "=" & EqualsTxt.Text & "]" & line.Replace(vbNewLine, "").Replace("\n", "") & "[/" & Attribute.Text & ineq & "=]"
output &= "[" & Attribute.Text & ineq & "=" & EqualsTxt.Text & "]" & line.Replace(vbNewLine, "").Replace("\n", "") & "[/" & Attribute.Text & ineq & "=]"
Next
output = out
Me.DialogResult = System.Windows.Forms.DialogResult.OK
Me.Close()
End Sub
Expand All @@ -29,9 +27,9 @@ Public Class AddConditional
For Each att As TreeNode In Form1.AttributeTree.Nodes
Attribute.Items.Add(att.Text)
Next
output.WordWrap = My.Settings.WordWrap
output.VirtualSpace = My.Settings.VirtualSpace
output.Code.WideCaret = My.Settings.WideCaret
output.Code.Font = My.Settings.editorFont
Display.WordWrap = My.Settings.WordWrap
Display.VirtualSpace = My.Settings.VirtualSpace
Display.WideCaret = My.Settings.WideCaret
Display.Font = My.Settings.editorFont
End Sub
End Class
Binary file modified AutoSite XL.suo
Binary file not shown.
2 changes: 1 addition & 1 deletion My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")>

<Assembly: AssemblyVersion("0.9.5.1")>
<Assembly: AssemblyVersion("0.9.5.2")>
<Assembly: AssemblyFileVersion("0.0.0.0")>

0 comments on commit 9dcf8f1

Please sign in to comment.