diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-11-25 21:49:43 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-11-26 12:31:24 +0100 |
commit | b6e354b26bfe2c0790c5817cba3cc3a6dad910b9 (patch) | |
tree | bce098844296edfb3c758170f1d2112153bad3bc /vcl | |
parent | a508f639a033cefe10ad78a09d3b3c46c162aad9 (diff) |
vcl: warn if we can't set a new font in OutputDevice
Change-Id: I7708590d0c8564271f76e8b80adc566022e6916e
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/outdev/font.cxx | 6 |
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; |