Browse Source

Fix a Null Ref Exception...

pull/604/head
jkuehner 12 years ago
parent
commit
6719026a8b
  1. 2
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/SnaplinePlacementBehavior.cs

2
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/SnaplinePlacementBehavior.cs

@ -227,7 +227,7 @@ namespace ICSharpCode.WpfDesign.Designer.Extensions @@ -227,7 +227,7 @@ namespace ICSharpCode.WpfDesign.Designer.Extensions
foreach (var item in AllDesignItems() /* ExtendedItem.ContentProperty.CollectionElements */
.Except(operation.PlacedItems.Select(f => f.Item))
.Where(x=>!GetDisableSnaplines(x.View))) {
.Where(x=> x.View != null && !GetDisableSnaplines(x.View))) {
if (item != null) {
var bounds = GetPosition(operation, item);

Loading…
Cancel
Save