Bug 40253 - [Qt] Crashfix on Path::contains
Summary: [Qt] Crashfix on Path::contains
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Nobody
URL:
Keywords: Qt
Depends on:
Blocks:
 
Reported: 2010-06-07 12:03 PDT by Enrico Ros
Modified: 2010-06-08 16:10 PDT (History)
1 user (show)

See Also:


Attachments
This fixes a crash on isPointOnPath in PathQt.cpp (1.17 KB, patch)
2010-06-07 12:03 PDT, Enrico Ros
ariya.hidayat: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Enrico Ros 2010-06-07 12:03:48 PDT
Created attachment 58067 [details]
This fixes a crash on isPointOnPath in PathQt.cpp

Fix accessing the first item of an empty vector, that happens when CanvasRenderingContext2D::isPointInPath is invoked over a borderless path (e.g. a path made of just a MoveTo operation).
Comment 1 Ariya Hidayat 2010-06-07 12:30:33 PDT
Comment on attachment 58067 [details]
This fixes a crash on isPointOnPath in PathQt.cpp

LGTM.
Comment 2 Julien Chaffraix 2010-06-08 16:10:45 PDT
Landed fix in r60869.