diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-07 15:40:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-07 19:27:58 +0200 |
commit | 4c016865f9ea78813d5cde84a4d214b34f2f1dd9 (patch) | |
tree | 116e7af9a4c12dea81f5e320c8f02190edab96ca | |
parent | 5ac2075d56cfff57f2254e4e5bd5a1e3a3579f83 (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>
-rw-r--r-- | canvas/source/tools/canvastools.cxx | 2 |
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; } } |