summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2013-04-12 18:46:17 +0200
committerJan Holesovsky <kendy@suse.cz>2013-04-12 18:48:44 +0200
commit9de73714775833f3ec7e7508d5fddcc8e4f19aed (patch)
treeb07b9a052a3bb6b1c5c34984f0fb5bbdf38ba09e /svx
parentf3c4b5606d4a697efbe3041530fc7f7d5a3a47b0 (diff)
i#116001: Decrementing the iterator while comparing is not a good idea here.
When it is begin(), it will get decremented regardless the result of the test, but probably affects only the dbgutil build. Change-Id: I9aba1a9eea07584d8203fe16929ecb4794d2c087
Diffstat (limited to 'svx')
-rw-r--r--svx/source/customshapes/EnhancedCustomShapeFontWork.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
index d095dad35ecc..b648dc7193ce 100644
--- a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
+++ b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
@@ -579,8 +579,9 @@ void InsertMissingOutlinePoints( const Polygon& /*rOutlinePoly*/, const std::vec
else if ( fDistance < fLastDistance )
{
std::vector< double >::const_iterator aIter = std::lower_bound( rDistances.begin(), rDistances.end(), fLastDistance );
- if ( aIter-- != rDistances.begin() )
+ if ( aIter != rDistances.begin() )
{
+ --aIter;
if ( ( *aIter > fDistance ) && ( *aIter < fLastDistance ) )
{
Point& rPt0 = rPoly[ i - 1 ];