Browse Source

Fix PInvoke sample.

pull/48/head
Matt Ward 12 years ago
parent
commit
541b51f6d3
  1. 3
      samples/PInvokeAddIn/Project/PInvoke.nuspec
  2. 2
      samples/PInvokeAddIn/Project/Src/PInvokeCodeGenerator.cs

3
samples/PInvokeAddIn/Project/PInvoke.nuspec

@ -2,11 +2,12 @@ @@ -2,11 +2,12 @@
<package xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<id>PInvoke</id>
<version>0.2</version>
<version>0.3</version>
<authors>Matt Ward</authors>
<owners>SharpDevelop</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>PInvoke.Net integration for SharpDevelop.</description>
<iconUrl>http://community.sharpdevelop.net/blogs/mattward/SharpDevelop.png</iconUrl>
<summary>PInvoke.Net integration for SharpDevelop.</summary>
<releaseNotes></releaseNotes>
<language>en-US</language>

2
samples/PInvokeAddIn/Project/Src/PInvokeCodeGenerator.cs

@ -21,7 +21,7 @@ namespace ICSharpCode.PInvokeAddIn @@ -21,7 +21,7 @@ namespace ICSharpCode.PInvokeAddIn
{
using (editor.Document.OpenUndoGroup()) {
int startLine = editor.Document.GetLineByOffset(editor.SelectionStart).LineNumber;
editor.SelectedText = DocumentUtilitites.NormalizeNewLines(signature, editor.Document, startLine);
editor.SelectedText = DocumentUtilities.NormalizeNewLines(signature, editor.Document, startLine);
int endLine = editor.Document.GetLineByOffset(editor.SelectionStart + editor.SelectionLength).LineNumber;
editor.Language.FormattingStrategy.IndentLines(editor, startLine, endLine);
}

Loading…
Cancel
Save