summaryrefslogtreecommitdiff
path: root/vcl/generic/print/text_gfx.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/generic/print/text_gfx.cxx')
-rw-r--r--vcl/generic/print/text_gfx.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/generic/print/text_gfx.cxx b/vcl/generic/print/text_gfx.cxx
index c97a369f80ea..40744455a66d 100644
--- a/vcl/generic/print/text_gfx.cxx
+++ b/vcl/generic/print/text_gfx.cxx
@@ -329,6 +329,7 @@ PrinterGfx::DrawText (
for( int n = 0; n < nLen; n++ )
{
CharacterMetric aBBox;
+ // coverity[array_vs_singleton]
pFontMap[n] = getCharMetric (aFont, pEffectiveStr[n], &aBBox);
pCharWidth[n] = getCharWidth (mbTextVertical, pEffectiveStr[n], &aBBox);
}
@@ -643,6 +644,7 @@ PrinterGfx::GetCharWidth (sal_Unicode nFrom, sal_Unicode nTo, long *pWidthArray)
for( int n = 0; n < (nTo - nFrom + 1); n++ )
{
CharacterMetric aBBox;
+ // coverity[array_vs_singleton]
getCharMetric (aFont, n + nFrom, &aBBox);
pWidthArray[n] = getCharWidth (mbTextVertical, n + nFrom, &aBBox);
}