diff options
Diffstat (limited to 'drawinglayer/source/attribute/strokeattribute.cxx')
-rw-r--r-- | drawinglayer/source/attribute/strokeattribute.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drawinglayer/source/attribute/strokeattribute.cxx b/drawinglayer/source/attribute/strokeattribute.cxx index 547f4dd97ebe..34324b6e0fda 100644 --- a/drawinglayer/source/attribute/strokeattribute.cxx +++ b/drawinglayer/source/attribute/strokeattribute.cxx @@ -51,7 +51,7 @@ namespace drawinglayer const std::vector< double >& getDotDashArray() const { return maDotDashArray; } double getFullDotDashLen() const { - if(0.0 == mfFullDotDashLen && maDotDashArray.size()) + if(0.0 == mfFullDotDashLen && !maDotDashArray.empty()) { // calculate length on demand const double fAccumulated(std::accumulate(maDotDashArray.begin(), maDotDashArray.end(), 0.0)); |