summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/wx/PathWx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/wx/PathWx.cpp')
-rw-r--r--WebCore/platform/graphics/wx/PathWx.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/WebCore/platform/graphics/wx/PathWx.cpp b/WebCore/platform/graphics/wx/PathWx.cpp
index 60c71d5..04a952d 100644
--- a/WebCore/platform/graphics/wx/PathWx.cpp
+++ b/WebCore/platform/graphics/wx/PathWx.cpp
@@ -66,11 +66,12 @@ Path::Path()
Path::~Path()
{
+ clear();
}
Path::Path(const Path& path)
{
- m_path = (PlatformPath*)&path.m_path;
+ m_path = new wxGraphicsPath(*path.m_path);
}
bool Path::contains(const FloatPoint& point, const WindRule rule) const
@@ -89,7 +90,7 @@ bool Path::contains(const FloatPoint& point, const WindRule rule) const
void Path::translate(const FloatSize&)
{
- notImplemented();
+ notImplemented();
}
FloatRect Path::boundingRect() const