Kaydet (Commit) b6e354b2 authored tarafından Michael Stahl's avatar Michael Stahl

vcl: warn if we can't set a new font in OutputDevice

Change-Id: I7708590d0c8564271f76e8b80adc566022e6916e
üst a508f639
...@@ -1546,7 +1546,10 @@ bool OutputDevice::ImplNewFont() const ...@@ -1546,7 +1546,10 @@ bool OutputDevice::ImplNewFont() const
// we need a graphics // we need a graphics
if ( !mpGraphics && !AcquireGraphics() ) if ( !mpGraphics && !AcquireGraphics() )
{
SAL_WARN("vcl.gdi", "OutputDevice::ImplNewFont(): no Graphics, no Font");
return false; return false;
}
SalGraphics* pGraphics = mpGraphics; SalGraphics* pGraphics = mpGraphics;
ImplInitFontList(); ImplInitFontList();
...@@ -1577,7 +1580,10 @@ bool OutputDevice::ImplNewFont() const ...@@ -1577,7 +1580,10 @@ bool OutputDevice::ImplNewFont() const
ImplFontEntry* pFontEntry = mpFontEntry; ImplFontEntry* pFontEntry = mpFontEntry;
if (!pFontEntry) if (!pFontEntry)
{
SAL_WARN("vcl.gdi", "OutputDevice::ImplNewFont(): no ImplFontEntry, no Font");
return false; return false;
}
// mark when lower layers need to get involved // mark when lower layers need to get involved
mbNewFont = false; mbNewFont = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment