Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ImportedProjects
SVG
Commits
47334a9d
Commit
47334a9d
authored
Sep 13, 2013
by
Slava Sharashkin
Browse files
fixes System.InvalidOperationException when simultaneously rendering multiple images
parent
5cd5cf2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/Text/SvgText.cs
View file @
47334a9d
...
...
@@ -265,7 +265,12 @@ namespace Svg
private
void
DrawString
(
GraphicsPath
path
,
SvgUnit
x
,
SvgUnit
y
,
SvgUnit
dx
,
SvgUnit
dy
,
Font
font
,
float
fontSize
,
string
text
)
{
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
yToDevice
=
y
.
ToDeviceValue
(
this
,
true
)
+
dy
.
ToDeviceValue
(
this
,
true
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment