summaryrefslogtreecommitdiff
path: root/vcl/generic/print
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-03 09:05:41 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-03 12:49:37 +0100
commitf18e0e2f2c75a2d18c8086654dde2a25be6a4cd9 (patch)
tree85c40c9c909c51c92fa32bce4e1a1d99d5ea5361 /vcl/generic/print
parenta215499bf3e30bcb5ec152823c227ab0ce256cc6 (diff)
clang scan-build: Assigned value is garbage or undefined
Change-Id: I461bb3d513fdbfffb3b79b549beded82c8d2a3d9
Diffstat (limited to 'vcl/generic/print')
-rw-r--r--vcl/generic/print/text_gfx.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/generic/print/text_gfx.cxx b/vcl/generic/print/text_gfx.cxx
index 2513843d49e4..769323b09bb1 100644
--- a/vcl/generic/print/text_gfx.cxx
+++ b/vcl/generic/print/text_gfx.cxx
@@ -303,6 +303,9 @@ PrinterGfx::DrawText (
const sal_Int32* pDeltaArray
)
{
+ if (!nLen)
+ return;
+
fontID nRestoreFont = mnFontID;
// setup font[substitutes] and map the string into the symbol area in case of