Menu

#25 SVG attribute value parsing error

Current version
closed
circular
None
1
2016-07-16
2015-08-27
circular
No

Lazarus Win32.

If you have svg file with Style Attribute like this:
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.73382717px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"

You got always black, full opaque elements because of
1) When you call for example:
val(AttributeOrStyle['fill-opacity'], result, errPos);

2) In AttributeOrStyle['fill-opacity'] you got '1.00;' (with semicolon), so, you got non zero error code and default value as the consequence.

Error in
procedure TSVGElement.LocateStyleDeclaration(AText: string; AProperty: string; out AStartPos,
AColonPos, AValueLength: integer);

I think AValueLength has wrong value.

Thank you for you lib!

Discussion

  • circular

    circular - 2015-08-27
    • status: open --> accepted
     
  • circular

    circular - 2016-07-16
    • status: accepted --> closed
     
  • circular

    circular - 2016-07-16

    Thanks for your help. It is fixed in version BGRABitmap 9.1

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB