From 541b51f6d3e4bccb5cf9b315da4549ba76c95bf4 Mon Sep 17 00:00:00 2001 From: Matt Ward Date: Mon, 8 Jul 2013 19:20:36 +0100 Subject: [PATCH] Fix PInvoke sample. --- samples/PInvokeAddIn/Project/PInvoke.nuspec | 3 ++- samples/PInvokeAddIn/Project/Src/PInvokeCodeGenerator.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/PInvokeAddIn/Project/PInvoke.nuspec b/samples/PInvokeAddIn/Project/PInvoke.nuspec index 21425078d8..8bc2b1955b 100644 --- a/samples/PInvokeAddIn/Project/PInvoke.nuspec +++ b/samples/PInvokeAddIn/Project/PInvoke.nuspec @@ -2,11 +2,12 @@ PInvoke - 0.2 + 0.3 Matt Ward SharpDevelop false PInvoke.Net integration for SharpDevelop. + http://community.sharpdevelop.net/blogs/mattward/SharpDevelop.png PInvoke.Net integration for SharpDevelop. en-US diff --git a/samples/PInvokeAddIn/Project/Src/PInvokeCodeGenerator.cs b/samples/PInvokeAddIn/Project/Src/PInvokeCodeGenerator.cs index 0d66f91909..be9591b237 100644 --- a/samples/PInvokeAddIn/Project/Src/PInvokeCodeGenerator.cs +++ b/samples/PInvokeAddIn/Project/Src/PInvokeCodeGenerator.cs @@ -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); }