Skip Menu |

This queue is for tickets about the Graphics-Primitive CPAN distribution.

Report information
The Basics
Id: 88589
Status: new
Priority: 0/
Queue: Graphics-Primitive

Owner: Nobody in particular
Requestors: SREZIC [...]

Bug Information
Severity: (no value)
Broken in: 0.61
Fixed in: (no value)

Subject: Graphics::Primitve::Brush: unnecessary restriction to Int for "width" member
Download (untitled) / with headers
text/plain 498b
Graphics::Primitve::Brush defines an "Int" restriction for the member "width": has 'width' => ( is => 'rw', isa => 'Int', default => sub { 0 } ); This is unnecessary strict. "Num" is better, as underlying drivers may allow floating numbers here. Especially the Cairo driver allows "double" for set_line_width and many other methods. I did not check other type restrictions for other members and classes, but it's possible that more members should be allowed to a "Num". Regards, Slaven

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to