diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2012-01-21 19:57:19 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2012-01-21 19:58:46 +0100 |
commit | 22da27d9ddcdacaef21d667b0777052b7e817b9a (patch) | |
tree | e72e427eb7b6934b796179ed3e49ca4a8c8734a6 /basegfx/inc | |
parent | Improve checking for emptiness (while) (diff) | |
download | core-22da27d9ddcdacaef21d667b0777052b7e817b9a.tar.gz core-22da27d9ddcdacaef21d667b0777052b7e817b9a.zip |
Improve checking for emptiness
Diffstat (limited to 'basegfx/inc')
-rw-r--r-- | basegfx/inc/basegfx/curve/b2dbeziertools.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basegfx/inc/basegfx/curve/b2dbeziertools.hxx b/basegfx/inc/basegfx/curve/b2dbeziertools.hxx index 2279cb9a8f24..821cc33c723f 100644 --- a/basegfx/inc/basegfx/curve/b2dbeziertools.hxx +++ b/basegfx/inc/basegfx/curve/b2dbeziertools.hxx @@ -54,7 +54,7 @@ namespace basegfx public: B2DCubicBezierHelper(const B2DCubicBezier& rBase, sal_uInt32 nDivisions = 9); - double getLength() const { if(maLengthArray.size()) return maLengthArray[maLengthArray.size() - 1]; else return 0.0; } + double getLength() const { if(!maLengthArray.empty()) return maLengthArray[maLengthArray.size() - 1]; else return 0.0; } double distanceToRelative(double fDistance) const; }; } // end of namespace basegfx |