@@ -178,8 +178,7 @@ static internal double FromString(string s, CultureInfo cultureInfo)
178
178
//Auto is represented and Double.NaN
179
179
//properties that do not want Auto and NaN to be in their ligit values,
180
180
//should disallow NaN in validation callbacks (same goes for negative values)
181
- if ( goodString == "auto" )
182
- return Double . NaN ;
181
+ if ( goodString == "auto" ) return Double . NaN ;
183
182
184
183
for ( int i = 0 ; i < PixelUnitStrings . Length ; i ++ )
185
184
{
@@ -216,8 +215,8 @@ static internal double FromString(string s, CultureInfo cultureInfo)
216
215
// These are effectively "TypeConverter only" units.
217
216
// They are all expressable in terms of the Pixel unit type and a conversion factor.
218
217
static private string [ ] PixelUnitStrings = { "px" , "in" , "cm" , "pt" } ;
219
- static private double [ ] PixelUnitFactors =
220
- {
218
+ static private double [ ] PixelUnitFactors =
219
+ {
221
220
1.0 , // Pixel itself
222
221
96.0 , // Pixels per Inch
223
222
96.0 / 2.54 , // Pixels per Centimeter
@@ -226,8 +225,7 @@ static internal double FromString(string s, CultureInfo cultureInfo)
226
225
227
226
static internal string ToString ( double l , CultureInfo cultureInfo )
228
227
{
229
- if ( double . IsNaN ( l ) )
230
- return "Auto" ;
228
+ if ( double . IsNaN ( l ) ) return "Auto" ;
231
229
return Convert . ToString ( l , cultureInfo ) ;
232
230
}
233
231
0 commit comments