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
7a093b52
"vscode:/vscode.git/clone" did not exist on "415810212b0552e673b6f58cfbf3443c741a243a"
Commit
7a093b52
authored
Jul 25, 2014
by
Eric Domke
Browse files
Pulling Upstream Changes and Fixing Merge
parent
9960f2c9
Changes
4
Show whitespace changes
Inline
Side-by-side
Source/Basic Shapes/SvgVisualElement.cs
View file @
7a093b52
...
@@ -163,7 +163,7 @@ namespace Svg
...
@@ -163,7 +163,7 @@ namespace Svg
if
(
this
.
StrokeDashArray
!=
null
&&
this
.
StrokeDashArray
.
Count
>
0
)
if
(
this
.
StrokeDashArray
!=
null
&&
this
.
StrokeDashArray
.
Count
>
0
)
{
{
/* divide by stroke width - GDI behaviour that I don't quite understand yet.*/
/* divide by stroke width - GDI behaviour that I don't quite understand yet.*/
pen
.
DashPattern
=
this
.
StrokeDashArray
.
ConvertAll
(
u
=>
u
.
Value
/
((
strokeWidth
<=
0
)
?
1
:
strokeWidth
)).
ToArray
();
pen
.
DashPattern
=
this
.
StrokeDashArray
.
ConvertAll
(
u
=>
((
u
.
Value
<=
0
)
?
1
:
u
.
Value
)
/
((
strokeWidth
<=
0
)
?
1
:
strokeWidth
)).
ToArray
();
}
}
renderer
.
DrawPath
(
pen
,
this
.
Path
);
renderer
.
DrawPath
(
pen
,
this
.
Path
);
...
...
Source/Basic Shapes/SvgVisualElementStyle.cs
View file @
7a093b52
...
@@ -294,11 +294,11 @@ namespace Svg
...
@@ -294,11 +294,11 @@ namespace Svg
{
{
case
FontParseState
.
fontFamilyNext
:
case
FontParseState
.
fontFamilyNext
:
this
.
FontFamily
=
string
.
Join
(
" "
,
parts
,
i
+
1
,
parts
.
Length
-
(
i
+
1
));
this
.
FontFamily
=
string
.
Join
(
" "
,
parts
,
i
+
1
,
parts
.
Length
-
(
i
+
1
));
i
=
int
.
MaxValue
;
i
=
int
.
MaxValue
-
2
;
break
;
break
;
case
FontParseState
.
fontFamilyCurr
:
case
FontParseState
.
fontFamilyCurr
:
this
.
FontFamily
=
string
.
Join
(
" "
,
parts
,
i
,
parts
.
Length
-
(
i
));
this
.
FontFamily
=
string
.
Join
(
" "
,
parts
,
i
,
parts
.
Length
-
(
i
));
i
=
int
.
MaxValue
;
i
=
int
.
MaxValue
-
2
;
break
;
break
;
}
}
...
...
Source/Paths/SvgClosePathSegment.cs
View file @
7a093b52
...
@@ -8,6 +8,7 @@ namespace Svg.Pathing
...
@@ -8,6 +8,7 @@ namespace Svg.Pathing
{
{
public
override
void
AddToPath
(
System
.
Drawing
.
Drawing2D
.
GraphicsPath
graphicsPath
)
public
override
void
AddToPath
(
System
.
Drawing
.
Drawing2D
.
GraphicsPath
graphicsPath
)
{
{
// Important for custom line caps. Force the path the close with an explicit line, not just an implicit close of the figure.
// Important for custom line caps. Force the path the close with an explicit line, not just an implicit close of the figure.
if
(
graphicsPath
.
PointCount
>
0
&&
!
graphicsPath
.
PathPoints
[
0
].
Equals
(
graphicsPath
.
PathPoints
[
graphicsPath
.
PathPoints
.
Length
-
1
]))
if
(
graphicsPath
.
PointCount
>
0
&&
!
graphicsPath
.
PathPoints
[
0
].
Equals
(
graphicsPath
.
PathPoints
[
graphicsPath
.
PathPoints
.
Length
-
1
]))
{
{
...
...
Source/Text/SvgTextSpan.cs
View file @
7a093b52
...
@@ -10,7 +10,6 @@ namespace Svg
...
@@ -10,7 +10,6 @@ namespace Svg
[
SvgElement
(
"tspan"
)]
[
SvgElement
(
"tspan"
)]
public
class
SvgTextSpan
:
SvgTextBase
public
class
SvgTextSpan
:
SvgTextBase
{
{
public
override
SvgElement
DeepCopy
()
public
override
SvgElement
DeepCopy
()
{
{
return
DeepCopy
<
SvgTextSpan
>();
return
DeepCopy
<
SvgTextSpan
>();
...
...
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