summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@aliftype.com>2022-11-21 17:32:42 +0200
committerخالد حسني <khaled@aliftype.com>2022-11-21 19:58:54 +0100
commitab5c60f2fd3e24f24fd82d7756d45a5fd4d19f1d (patch)
tree772f9bd330ab3e129030efdb43e710203b3b6756 /vcl/inc
parent1ff2f5fa2d8c353b0cad28317a696c2ba9a4aab5 (diff)
vcl: fix accessing color font colors
Don’t unconditionally access palette 0. Change-Id: I3de3f005371fcb9360ee0cf245a1d0a7434ffbd8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143042 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@aliftype.com>
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/font/PhysicalFontFace.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/inc/font/PhysicalFontFace.hxx b/vcl/inc/font/PhysicalFontFace.hxx
index 96f2533f22fe..ac8ba2d958c7 100644
--- a/vcl/inc/font/PhysicalFontFace.hxx
+++ b/vcl/inc/font/PhysicalFontFace.hxx
@@ -174,9 +174,10 @@ public:
bool IsColorFont() const { return HasColorLayers() || HasColorBitmaps(); }
bool HasColorLayers() const;
- const ColorPalette& GetColorPalette(size_t) const;
std::vector<ColorLayer> GetGlyphColorLayers(sal_GlyphId) const;
+ const std::vector<ColorPalette>& GetColorPalettes() const;
+
bool HasColorBitmaps() const;
RawFontData GetGlyphColorBitmap(sal_GlyphId, tools::Rectangle&) const;