summaryrefslogtreecommitdiff
path: root/vcl/source/outdev/text.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-05-02 17:57:22 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-05-03 09:17:09 +0200
commit8662a96c90b56f61bf24380094f217e7170f54be (patch)
tree8f7655d59e15cc2f7a8f98819408dd50698f7bc9 /vcl/source/outdev/text.cxx
parent3cc6384e41819eb8a5182a9ab7fd8f74d3cea9e5 (diff)
WaE: C6011 Dereferencing NULL pointer warnings
Change-Id: I9b2b86c26e08221c57735c6eda88727aa8a46b5f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167021 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'vcl/source/outdev/text.cxx')
-rw-r--r--vcl/source/outdev/text.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/source/outdev/text.cxx b/vcl/source/outdev/text.cxx
index 2ed9dc9a820e..1f342304ce5f 100644
--- a/vcl/source/outdev/text.cxx
+++ b/vcl/source/outdev/text.cxx
@@ -778,6 +778,7 @@ double OutputDevice::GetTextArray( const OUString& rStr, KernArray* pKernArray,
// convert from font units to logical units
if (pDXPixelArray)
{
+ assert(pKernArray && "pDXPixelArray depends on pKernArray existing");
int nSubPixelFactor = pKernArray->get_factor();
if (mbMap)
{