Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
22a7458a
Commit
22a7458a
authored
Feb 18, 2013
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Avoid a devision by zero when a being added segment length is 0.
This sometimes happens after GdipAddPathLine + GdipWidenPath.
parent
9bcd1cdd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
graphicspath.c
dlls/gdiplus/graphicspath.c
+7
-0
No files found.
dlls/gdiplus/graphicspath.c
View file @
22a7458a
...
...
@@ -1702,6 +1702,13 @@ static void add_bevel_point(const GpPointF *endpoint, const GpPointF *nextpoint,
REAL
distance
=
pen
->
width
/
2
.
0
;
REAL
bevel_dx
,
bevel_dy
;
if
(
segment_length
==
0
.
0
)
{
*
last_point
=
add_path_list_node
(
*
last_point
,
endpoint
->
X
,
endpoint
->
Y
,
PathPointTypeLine
);
return
;
}
if
(
right_side
)
{
bevel_dx
=
-
distance
*
segment_dy
/
segment_length
;
...
...
Write
Preview
Markdown
is supported
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