From 4c016865f9ea78813d5cde84a4d214b34f2f1dd9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 7 May 2020 15:40:15 +0200 Subject: fix bug in extracting property introduced with commit 17cd7dd708631f7af9e66860b403627416e4545e tdf#43671 set emphasis mark of vcl::Font (windows). but has probably never been a problem because I guess this propertyset almost always has 0 or 1 element. Change-Id: I17c64e376ee81cc9f92173015d2632331c63ae0e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93643 Tested-by: Jenkins Reviewed-by: Noel Grandin --- canvas/source/tools/canvastools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'canvas') diff --git a/canvas/source/tools/canvastools.cxx b/canvas/source/tools/canvastools.cxx index 54e93fcb3625..2ca1b5081724 100644 --- a/canvas/source/tools/canvastools.cxx +++ b/canvas/source/tools/canvastools.cxx @@ -1317,7 +1317,7 @@ namespace canvas::tools for(sal_Int32 nIdx = 0; nIdx < rExtraFontProperties.getLength(); ++nIdx) { if (rExtraFontProperties[nIdx].Name == "EmphasisMark") - rExtraFontProperties[0].Value >>= rEmphasisMark; + rExtraFontProperties[nIdx].Value >>= rEmphasisMark; } } -- cgit