Skip to content

Commit

Permalink
Merge remote-tracking branch 'github_sandbox/ThreeTwoOne' into github…
Browse files Browse the repository at this point in the history
…_sandbox_threetwoone
  • Loading branch information
spiridon-alexandru committed Mar 7, 2013
2 parents 6684296 + c675f91 commit 762c167
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
using System.Text.RegularExpressions;
using System.Reflection;
using System.Windows.Media;
using System.Globalization;

namespace MoSync
{
Expand Down Expand Up @@ -207,7 +208,9 @@ public String fontSize
set
{
double size = 0;
if (double.TryParse(value, out size))
NumberStyles style = NumberStyles.AllowDecimalPoint;
IFormatProvider provider = CultureInfo.InvariantCulture;
if (Double.TryParse(value, style, provider, out size))
{
// for some values better use the default size of the platform
mLabel.FontSize = size <= 0 ? 11 : size;
Expand Down

0 comments on commit 762c167

Please sign in to comment.