question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SVG re-throws ArgumentException due to bounds zero and if opacity is not one

See original GitHub issue

Svg.dll will re-throw an ArgumentException from CBitmap if rendering a path where the bounds width or height is zero and opacity is not one (the default).

The above is reproducible using master at commit 80674303f5abebcc247a3c4dbe4d6bb2de1bf2cd. SVGViewer can be used to verify the bug.

The original exception is thrown by the CBitmap constructor in line 154 of Source\Basic Shapes\SvgVisualElement.cs

Test svg:

<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200">
  <g id="Layer 1">
    <path d="M100,50 L100,150" stroke="black" opacity="0.5" />
  </g>
</svg>

Expected result: line_opacity

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
H1Gdevcommented, Jun 6, 2019

Thanks. I try to fix this issue.

0reactions
mrbean-bremencommented, Jun 12, 2019

Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

SVG Opacity Transitions briefly go further than the CSS ...
I'm currently trying to get an SVG rect (in an svg embedded in html) to fade in when hovered over. I've noticed that...
Read more >
CSS SVG opacity iOS issue
Try to add visibility: visible;. to the element. It's answer I have found here: http://www.punkchip.com/css-opacity-not-working-in-ios/.
Read more >
togethercomputer/RedPajama-Data-1T-Sample
Note that if all of your related resources are in a self-contained # resource group, you do not necessarily need this method. You...
Read more >
togethercomputer/RedPajama-Data-1T-Sample
Specifically, this sample covers hosting the HRTF xAPO in an XAudio2 graph for rendering sources with different spatial locations, radiation patterns and ...
Read more >
stackOverflowTags
To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found