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
909fc1f8
Commit
909fc1f8
authored
Sep 23, 2014
by
Ritch Melton
Browse files
minor flog
parent
0d6779d5
Changes
1
Show whitespace changes
Inline
Side-by-side
Source/Text/SvgTextBase.cs
View file @
909fc1f8
...
@@ -296,10 +296,10 @@ namespace Svg
...
@@ -296,10 +296,10 @@ namespace Svg
public
override
GraphicsPath
Path
(
ISvgRenderer
renderer
)
public
override
GraphicsPath
Path
(
ISvgRenderer
renderer
)
{
{
//if there is a TSpan inside of this text element then path should not be null (even if this text is empty!)
//if there is a TSpan inside of this text element then path should not be null (even if this text is empty!)
var
nodes
=
GetContentNodes
().
Where
(
x
=>
x
is
SvgContentNode
)
var
nodes
=
GetContentNodes
().
Where
(
x
=>
x
is
SvgContentNode
&&
.
Select
(
n
=>
!
string
.
IsNullOrEmpty
(
n
.
Content
.
Trim
(
new
[]
{
'\r'
,
'\n'
,
'\t'
})));
string
.
IsNullOrEmpty
(
x
.
Content
.
Trim
(
new
[]
{
'\r'
,
'\n'
,
'\t'
})));
if
(
_path
==
null
||
IsPathDirty
||
nodes
.
Any
()
)
if
(
_path
==
null
||
IsPathDirty
||
nodes
.
Count
()
==
1
)
{
{
renderer
=
(
renderer
??
SvgRenderer
.
FromNull
());
renderer
=
(
renderer
??
SvgRenderer
.
FromNull
());
SetPath
(
new
TextDrawingState
(
renderer
,
this
));
SetPath
(
new
TextDrawingState
(
renderer
,
this
));
...
...
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