Browse Source

Fixed SD2-628 - Can now design unsaved files when a project is currently open.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@956 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Matt Ward 20 years ago
parent
commit
309a0b8978
  1. 2
      src/AddIns/DisplayBindings/FormsDesigner/Project/Src/Services/DesignerResourceService.cs

2
src/AddIns/DisplayBindings/FormsDesigner/Project/Src/Services/DesignerResourceService.cs

@ -168,7 +168,7 @@ namespace ICSharpCode.FormsDesigner.Services @@ -168,7 +168,7 @@ namespace ICSharpCode.FormsDesigner.Services
IProject GetProject()
{
if (_project == null && ProjectService.OpenSolution != null)
if (_project == null && ProjectService.OpenSolution != null && FileName != null)
_project = ProjectService.OpenSolution.FindProjectContainingFile(FileName);
return _project;
}

Loading…
Cancel
Save