summaryrefslogtreecommitdiff
path: root/basegfx/source/polygon/b3dpolygontools.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-08-03 12:31:03 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-08-03 12:31:03 +0000
commitd6e646b1b0e097dbee9cdf979560632dfc3c9066 (patch)
tree95461fc0314c10713f56b6f782ccda5e68e1573e /basegfx/source/polygon/b3dpolygontools.cxx
parent4a086f0c27ea5fb5e0dbbb75711bfd992a8f9904 (diff)
INTEGRATION: CWS aw017 (1.3.34); FILE MERGED
2004/07/29 14:04:30 aw 1.3.34.1: #i25616#
Diffstat (limited to 'basegfx/source/polygon/b3dpolygontools.cxx')
-rw-r--r--basegfx/source/polygon/b3dpolygontools.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/basegfx/source/polygon/b3dpolygontools.cxx b/basegfx/source/polygon/b3dpolygontools.cxx
index e4f2011795ae..965f1e7363d0 100644
--- a/basegfx/source/polygon/b3dpolygontools.cxx
+++ b/basegfx/source/polygon/b3dpolygontools.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: b3dpolygontools.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: thb $ $Date: 2004-01-16 10:34:34 $
+ * last change: $Author: hr $ $Date: 2004-08-03 13:31:03 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -79,6 +79,8 @@
#include <basegfx/range/b3drange.hxx>
#endif
+#include <numeric>
+
//////////////////////////////////////////////////////////////////////////////
namespace basegfx
@@ -352,6 +354,12 @@ namespace basegfx
{
::basegfx::B3DPolyPolygon aRetval;
+ if(0.0 == fFullDashDotLen && raDashDotArray.size())
+ {
+ // calculate fFullDashDotLen from raDashDotArray
+ fFullDashDotLen = ::std::accumulate(raDashDotArray.begin(), raDashDotArray.end(), 0.0);
+ }
+
if(rCandidate.count() && fFullDashDotLen > 0.0)
{
const sal_uInt32 nCount(rCandidate.isClosed() ? rCandidate.count() : rCandidate.count() - 1L);