Null brush fix

May 21, 2011 at 12:24 PM

First of all: thanks for these nice components.

In case a shapefile has a null/transparent fill brush, an error occurs. The following change in the source code will fix this:

In SilverlightStyles.cs:

public static System.Windows.Media.Brush Convert(this Brush brush)
{
   if (brush == null)
       return System.Windows.Media.Brushes.Transparent;
   return new System.Windows.Media.SolidColorBrush(brush.Color.Convert());
}

How about setting the default pen width in Pen.cs in 1?

Coordinator
May 29, 2011 at 8:46 PM

Thanks for reporting the bug! I will fix it, but not tonight since I'm halfway some refactoring.

Paul

 

Coordinator
May 29, 2011 at 8:56 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.