summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-07 15:40:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-07 19:27:58 +0200
commit4c016865f9ea78813d5cde84a4d214b34f2f1dd9 (patch)
tree116e7af9a4c12dea81f5e320c8f02190edab96ca /canvas
parent5ac2075d56cfff57f2254e4e5bd5a1e3a3579f83 (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/tools/canvastools.cxx2
1 files changed, 1 insertions, 1 deletions
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;
}
}