adobe / adobe/svg-native-viewer

GDIPlusSVGPath::MoveTo need a mPath.StartFigure

Open
#178 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
164
Forks
42
PR merge metrics
No merged PRs in 30d

Description

Hi, I try a svg file at https://www.w3schools.com/graphics/tryit.asp?filename=trysvg_path, and found different render result with gdiplus ports

I tried add `StartFigure ` at `MoveTo` and works ok

```cpp
void GDIPlusSVGPath::MoveTo(float x, float y)
{
mPath.StartFigure(); // add StartFigure at here
mCurrentX = x;
mCurrentY = y;
}
```

svg file:
```xml

```

Contributor guide

Open the contributing guide

Research direction

Start at GDIPlusSVGPath::MoveTo and reproduce the rendering difference with the linked SVG path example. Compare the result with and without mPath.StartFigure(), then verify that the affected paths render consistently without changing unrelated SVG path behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.