summaryrefslogtreecommitdiff
path: root/include/drawinglayer/primitive2d
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@libreoffice.org>2023-07-19 08:19:06 +0300
committerخالد حسني <khaled@libreoffice.org>2023-07-23 06:04:17 +0200
commitecf352701411fe178b51841b5714e27bef500206 (patch)
treeacb0e410e4fca6c50d96f358ac1f950fa5dc37eb /include/drawinglayer/primitive2d
parent2ce3398d3863114a8f5333a86b76f2520eb7c7d8 (diff)
vcl: Use GetTextArray() when drawing mnemonics
Instead of using a different function to get the character width, use the same function used for getting the character widths elsewhere. Change-Id: I21428f34bb0f3a60fa17f5e8ecc3420545356337 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154609 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'include/drawinglayer/primitive2d')
-rw-r--r--include/drawinglayer/primitive2d/textlayoutdevice.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/drawinglayer/primitive2d/textlayoutdevice.hxx b/include/drawinglayer/primitive2d/textlayoutdevice.hxx
index 6348de0ddd25..dfb5ba6c5c37 100644
--- a/include/drawinglayer/primitive2d/textlayoutdevice.hxx
+++ b/include/drawinglayer/primitive2d/textlayoutdevice.hxx
@@ -96,8 +96,8 @@ public:
void addTextRectActions(const tools::Rectangle& rRectangle, const OUString& rText,
DrawTextFlags nStyle, GDIMetaFile& rGDIMetaFile) const;
- ::std::vector<double> getTextArray(const OUString& rText, sal_uInt32 nIndex,
- sal_uInt32 nLength) const;
+ ::std::vector<double> getTextArray(const OUString& rText, sal_uInt32 nIndex, sal_uInt32 nLength,
+ bool bCaret = false) const;
::std::vector<double> getCaretPositions(const OUString& rText, sal_uInt32 nIndex,
sal_uInt32 nLength) const;