Commit ded01d09 authored by Tebjan Halm's avatar Tebjan Halm
Browse files

Merge pull request #19 from slavashar/master

Fixes simultaneously rendering multiple images
parents f8a16fd4 47334a9d
...@@ -296,7 +296,12 @@ namespace Svg ...@@ -296,7 +296,12 @@ namespace Svg
private void DrawString(GraphicsPath path, SvgUnit x, SvgUnit y, SvgUnit dx, SvgUnit dy, Font font, float fontSize, string text) private void DrawString(GraphicsPath path, SvgUnit x, SvgUnit y, SvgUnit dx, SvgUnit dy, Font font, float fontSize, string text)
{ {
PointF location = PointF.Empty; PointF location = PointF.Empty;
SizeF stringBounds = _stringMeasure.MeasureString(text, font); SizeF stringBounds;
lock (_stringMeasure)
{
stringBounds = _stringMeasure.MeasureString(text, font);
}
float xToDevice = x.ToDeviceValue(this) + dx.ToDeviceValue(this); float xToDevice = x.ToDeviceValue(this) + dx.ToDeviceValue(this);
float yToDevice = y.ToDeviceValue(this, true) + dy.ToDeviceValue(this, true); float yToDevice = y.ToDeviceValue(this, true) + dy.ToDeviceValue(this, true);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment