Closed Bug 313180 Opened 20 years ago Closed 18 years ago

getBBox on degenerate rect giving garbage result

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 377085

People

(Reporter: tor, Assigned: tor)

Details

Attachments

(3 files)

Attached image testcase
Attachment #200255 - Flags: review?(scootermorris)
Comment on attachment 200255 [details] [diff] [review] handle degenerate rect It would be useful to have a comment to explain why you are doing a Moveto when the rectangle won't be rendered. With that r+
Attachment #200255 - Flags: review?(scootermorris) → review+
Flags: blocking1.9a1?
Flags: blocking1.9a1? → blocking1.9?
I think this is fixed in cairo now so this patch is no longer necessary (and is also no longer appropriate given that it should now use IsDegenerateRect). I think we can close this as WORKSFORME now.
Attached image testcase2
I think it still has some issues (try testcase)
(In reply to comment #5) > Created an attachment (id=251009) [details] > testcase2 > > I think it still has some issues (try testcase) > Seems to produce the results I expect. What problem do you see? N.B. you are testing with a trunk build aren't you?
When a shape has zero width and height getBBox() returns zero for x and y too. Is this how it is supposed to work? > N.B. you are testing with a trunk build aren't you? Yes I am testing with trunk.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Flags: blocking1.9?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: