Browse Source

A fix for the Unit Tests.

In them, the DesignPanel is not available
pull/52/head
jkuehner 13 years ago
parent
commit
238674e46f
  1. 5
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/RasterPlacementBehavior.cs

5
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/RasterPlacementBehavior.cs

@ -23,7 +23,12 @@ namespace ICSharpCode.WpfDesign.Designer.Extensions
{ {
base.BeginPlacement(operation); base.BeginPlacement(operation);
try {
raster = ((DesignPanel) ExtendedItem.Services.DesignPanel).RasterWidth; raster = ((DesignPanel) ExtendedItem.Services.DesignPanel).RasterWidth;
}
catch (Exception ex)
{ }
CreateSurface(operation); CreateSurface(operation);
} }

Loading…
Cancel
Save