Browse Source

XmlView checks that the PrimaryFile is not null before MakeDirty is called in the DocumentChanged event handler. The text editor's filename is set to an empty string instead of null in the XslOutputView so the ParserService does not throw an ArgumentNullException when looking for a parser.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2742 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Matt Ward 18 years ago
parent
commit
06e3f369e2
  1. 4
      src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs
  2. 3
      src/AddIns/DisplayBindings/XmlEditor/Project/Src/XslOutputView.cs

4
src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs

@ -762,7 +762,9 @@ namespace ICSharpCode.XmlEditor @@ -762,7 +762,9 @@ namespace ICSharpCode.XmlEditor
/// </summary>
void DocumentChanged(object sender, DocumentEventArgs e)
{
this.PrimaryFile.MakeDirty();
if (PrimaryFile != null) {
PrimaryFile.MakeDirty();
}
}
/// <summary>

3
src/AddIns/DisplayBindings/XmlEditor/Project/Src/XslOutputView.cs

@ -18,7 +18,8 @@ namespace ICSharpCode.XmlEditor @@ -18,7 +18,8 @@ namespace ICSharpCode.XmlEditor
{
public XslOutputView()
{
this.TitleName = StringParser.Parse("${res:ICSharpCode.XmlEditor.XslOutputView.Title}");
TitleName = StringParser.Parse("${res:ICSharpCode.XmlEditor.XslOutputView.Title}");
TextEditorControl.FileName = String.Empty;
}
public static XslOutputView Instance {

Loading…
Cancel
Save