This commit is contained in:
Kathy Ruffing 2011-05-19 13:32:33 +00:00
parent bb034b56cc
commit cffec5776a

View File

@ -603,6 +603,11 @@ namespace Volian.Controls.Library
//return (DPI * value) / 864;
return (DPI * value) / 72;
}
public int ToDisplay(float? value)
{
//return (DPI * value) / 864;
return (int)(DPI * (value??0)) / 72;
}
/// <summary>
/// Converts an integer? value from Twips to Pixels
/// </summary>
@ -619,7 +624,7 @@ namespace Volian.Controls.Library
/// <returns></returns>
public int ToDisplay(string value)
{
return ToDisplay(Convert.ToInt32(value));
return ToDisplay(Convert.ToSingle(value));
}
/// <summary>
/// Converts a value from a list in a string from Twips to Pixels