Compare commits

...

1 Commits

Author SHA1 Message Date
swcs 82bc1e72c6 stop throwing exceptions for color validation 2023-05-18 17:50:21 +02:00
+1 -9
View File
@@ -26,15 +26,7 @@ namespace QuestPDF.Helpers
static bool IsColorValid(string color)
{
try
{
SKColor.Parse(color);
return true;
}
catch
{
return false;
}
return SKColor.TryParse(color, out _);
}
}
}