From f305861b1be589ff6854be2f72541398b61c637b Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Wed, 27 Nov 2013 11:51:32 +0100 Subject: EMF+: Line thickness has to be considered when drawing the caps. Change-Id: I6043ee3c214f453afaef06125993c73be624c07e --- include/basegfx/polygon/b2dlinegeometry.hxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/basegfx/polygon/b2dlinegeometry.hxx b/include/basegfx/polygon/b2dlinegeometry.hxx index 62a6e228d0d8..bc7ddf40c1ab 100644 --- a/include/basegfx/polygon/b2dlinegeometry.hxx +++ b/include/basegfx/polygon/b2dlinegeometry.hxx @@ -63,6 +63,10 @@ namespace basegfx again calculating the length (which may be expensive with beziers). If 0.0 is given, the length is calculated on demand. + @param fShift + When it is necessary to count with the thickness of the line, it + makes sense to move the start position slightly - so define the shift. + @return The Line start and end polygon, correctly rotated and scaled */ @@ -73,7 +77,8 @@ namespace basegfx double fWidth, double fCandidateLength = 0.0, // 0.0 -> calculate self double fDockingPosition = 0.5, // 0->top, 1->bottom - double* pConsumedLength = 0L); + double* pConsumedLength = 0L, + double fShift = 0.0); /** create filled polygon geometry for lines with a line width -- cgit v1.2.3