merge the formfield patch from ooo-build
[ooovba.git] / applied_patches / 0588-svx-fontwork-crash-fix.diff
blobdab57360131e4ed5793b6db97039367fff7a454b
1 Fix crash in fontwork
3 From: Thorsten Behrens <thb@openoffice.org>
6 ---
8 .../customshapes/EnhancedCustomShapeFontWork.cxx | 2 +-
9 1 files changed, 1 insertions(+), 1 deletions(-)
12 diff --git svx/source/customshapes/EnhancedCustomShapeFontWork.cxx svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
13 index dfcebaa..2345036 100644
14 --- svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
15 +++ svx/source/customshapes/EnhancedCustomShapeFontWork.cxx
16 @@ -639,7 +639,7 @@ void InsertMissingOutlinePoints( const Polygon& /*rOutlinePoly*/, const std::vec
17 void GetPoint( const Polygon& rPoly, const std::vector< double >& rDistances, const double& fX, double& fx1, double& fy1 )
19 fy1 = fx1 = 0.0;
20 - if ( rPoly.GetSize() )
21 + if ( rPoly.GetSize() > 1 )
23 std::vector< double >::const_iterator aIter = std::lower_bound( rDistances.begin(), rDistances.end(), fX );
24 sal_uInt16 nIdx = sal::static_int_cast<sal_uInt16>( std::distance( rDistances.begin(), aIter ) );