diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-03-23 09:14:13 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-04-10 13:06:20 +0100 |
commit | 0e491a7a2affbb08071e6378dacc1995cb301655 (patch) | |
tree | c93205745e1fcd69ff508a3d04aa064bb90606ae /vcl/source | |
parent | c612c3b0aed9ad7f7f42b4313f821b71995ead15 (diff) |
vclptr: add isDisposed method - and assert for it here & there.
Change-Id: I2b154e0ed9eee0a45900ada7f805a1d444a31bc0
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/outdev/font.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx index 1bf2df824ff6..27810d43ade9 100644 --- a/vcl/source/outdev/font.cxx +++ b/vcl/source/outdev/font.cxx @@ -91,7 +91,12 @@ vcl::FontInfo OutputDevice::GetDevFont( int nDevFontIndex ) const int OutputDevice::GetDevFontCount() const { if( !mpGetDevFontList ) + { + if (!mpFontCollection) + return 0; + mpGetDevFontList = mpFontCollection->GetDevFontList(); + } return mpGetDevFontList->Count(); } |