svx/source/customshapes/EnhancedCustomShapeFontWork.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 11e5ef0698d28fb7ba23f12a1d1b248ce9d6e9b8 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Thu Nov 14 12:45:28 2024 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Thu Nov 14 14:20:04 2024 +0100 tdf#163486: PVS: container is empty Since commit ecd615ab32fcacf8f8116672ebe631d1db72cb4e Author: Armin Le Grand (Allotropia) <armin.le.gr...@me.com> Date: Thu Nov 18 18:06:39 2021 +0100 VCL implement GetGlyphOutline fallback V557 The 'aDXArry' container is empty, the access to its elements is impossible. Change-Id: Ib67bbbf21f215bc27aa03b1a61dd7195c93e5311 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176589 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx index 791b5b9e22bb..fedf458023ad 100644 --- a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx +++ b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx @@ -424,7 +424,7 @@ static void GetTextAreaOutline( pVirDev->GetTextArray( rText, &aDXArry); aCharacterData.vOutlines.clear(); - if(aDXArry.size()) + if(!aDXArry.empty()) { for(size_t a(0); a < aDXArry.size(); a++) { @@ -446,7 +446,7 @@ static void GetTextAreaOutline( basegfx::B2DRange( 0, 0, - aDXArry.empty() ? 10 : aDXArry.back(), + 10, aFont.GetFontHeight() ))); aCharacterData.vOutlines.emplace_back(tools::Polygon(aPolygon));