diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-03-05 13:27:17 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-03-05 17:45:19 +0100 |
commit | 0e78ce148371f8ae27f4660403dd057a1f632ecf (patch) | |
tree | ce27806a83d26209736c11e1e403464b5c56cb99 /svx | |
parent | a7859d08ab3f4c214e83d311a5db7aeed2f707b5 (diff) |
Operators for Point are only overloaded for long, not double
...so no use giving double arguments that are implicitly cast to long anyway.
Change-Id: I26b9059fc5ab0d55c3f320e2b2f55502423541a9
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShape2d.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShape2d.cxx b/svx/source/customshapes/EnhancedCustomShape2d.cxx index b1bd8d859b0d..3ed260501b66 100644 --- a/svx/source/customshapes/EnhancedCustomShape2d.cxx +++ b/svx/source/customshapes/EnhancedCustomShape2d.cxx @@ -1737,8 +1737,8 @@ void EnhancedCustomShape2d::CreateSubPath( sal_uInt16& rSrcPt, sal_uInt16& rSegm const Point aPreviousEndPoint(GetPoint( seqCoordinates[ rSrcPt - 1 ], true, true)); const Point aControlQ(GetPoint( seqCoordinates[ rSrcPt++ ], true, true )); const Point aEnd(GetPoint( seqCoordinates[ rSrcPt++ ], true, true )); - const Point aControlA((aPreviousEndPoint + (aControlQ * 2.0)) / 3.0); - const Point aControlB(((aControlQ * 2.0) + aEnd) / 3.0); + const Point aControlA((aPreviousEndPoint + (aControlQ * 2)) / 3); + const Point aControlB(((aControlQ * 2) + aEnd) / 3); DBG_ASSERT(aNewB2DPolygon.count(), "EnhancedCustomShape2d::CreateSubPath: Error in adding Q control point (!)"); aNewB2DPolygon.appendBezierSegment( |