summaryrefslogtreecommitdiff
path: root/vcl/source/outdev
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-11-25 21:49:43 +0100
committerMichael Stahl <mstahl@redhat.com>2015-11-30 14:33:41 +0100
commit8dec57457a68a00bb33585e867a917509145f931 (patch)
treeacdd869c26c6fb406f89a78ace384c8439fc185d /vcl/source/outdev
parent124f5535097b3e109483936ebc9393531401af8b (diff)
vcl: warn if we can't set a new font in OutputDevice
Change-Id: I7708590d0c8564271f76e8b80adc566022e6916e (cherry picked from commit b6e354b26bfe2c0790c5817cba3cc3a6dad910b9)
Diffstat (limited to 'vcl/source/outdev')
-rw-r--r--vcl/source/outdev/font.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx
index 5f9f07d46c73..f2885f0813e8 100644
--- a/vcl/source/outdev/font.cxx
+++ b/vcl/source/outdev/font.cxx
@@ -1546,7 +1546,10 @@ bool OutputDevice::ImplNewFont() const
// we need a graphics
if ( !mpGraphics && !AcquireGraphics() )
+ {
+ SAL_WARN("vcl.gdi", "OutputDevice::ImplNewFont(): no Graphics, no Font");
return false;
+ }
SalGraphics* pGraphics = mpGraphics;
ImplInitFontList();
@@ -1577,7 +1580,10 @@ bool OutputDevice::ImplNewFont() const
ImplFontEntry* pFontEntry = mpFontEntry;
if (!pFontEntry)
+ {
+ SAL_WARN("vcl.gdi", "OutputDevice::ImplNewFont(): no ImplFontEntry, no Font");
return false;
+ }
// mark when lower layers need to get involved
mbNewFont = false;