File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,9 @@ private struct ImageAttributes
243
243
private string CleanSvgVal(double input)
244
244
{
245
245
//Clean double values for international use/formats
246
- return input.ToString(System.Globalization.CultureInfo.InvariantCulture);
246
+ //We use explicitly "G15" to avoid differences between .NET full and Core platforms
247
+ //https://stackoverflow.com/questions/64898117/tostring-has-a-different-behavior-between-net-462-and-net-core-3-1
248
+ return input.ToString("G15", System.Globalization.CultureInfo.InvariantCulture);
247
249
}
248
250
249
251
/// <summary>
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public void can_render_svg_qrcode_viewbox_mode()
64
64
var svg = new SvgQRCode ( data ) . GetGraphic ( new Size ( 128 , 128 ) ) ;
65
65
66
66
var result = HelperFunctions . StringToHash ( svg ) ;
67
- result . ShouldBe ( "ec9a13c4484d246e3e2e0574958845c8 " ) ;
67
+ result . ShouldBe ( "56719c7db39937c74377855a5dc4af0a " ) ;
68
68
}
69
69
70
70
[ Fact ]
You can’t perform that action at this time.
0 commit comments