Skip to content

Commit 18547ca

Browse files
committed
Close #1924
1 parent 83fed1d commit 18547ca

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

RetailCoder.VBE/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("2.0.2.*")]
35-
[assembly: AssemblyFileVersion("2.0.2.0")]
34+
[assembly: AssemblyVersion("2.0.4.*")]
35+
[assembly: AssemblyFileVersion("2.0.4.0")]

Rubberduck.VBEEditor/Extensions/VBComponentsExtensions.cs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,12 @@ public static void ImportSourceFile(this VBComponents components, string filePat
5454
component.CodeModule.AddFromString(codeString);
5555
}
5656
}
57-
else if(ext != VBComponentExtensions.FormBinaryExtension)
58-
{
59-
components.Import(filePath);
60-
}
61-
62-
if (ext == VBComponentExtensions.FormExtension)
57+
else if (ext == VBComponentExtensions.FormExtension)
6358
{
6459
var component = components.Item(name);
6560
// note: vbeCode contains an extraneous line here:
6661
//var vbeCode = component.CodeModule.Lines().Split(new []{Environment.NewLine}, StringSplitOptions.None);
67-
62+
6863
var nonAttributeLines = codeLines.TakeWhile(line => !line.StartsWith("Attribute")).Count();
6964
var attributeLines = codeLines.Skip(nonAttributeLines).TakeWhile(line => line.StartsWith("Attribute")).Count();
7065
var declarationsStartLine = nonAttributeLines + attributeLines + 1;
@@ -73,6 +68,10 @@ public static void ImportSourceFile(this VBComponents components, string filePat
7368
component.CodeModule.Clear();
7469
component.CodeModule.AddFromString(correctCodeString);
7570
}
71+
else if(ext != VBComponentExtensions.FormBinaryExtension)
72+
{
73+
components.Import(filePath);
74+
}
7675
}
7776
}
7877
}

0 commit comments

Comments
 (0)