diff options
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/control/ctrlbox.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index b33051f7c911..f07041f4a423 100644 --- a/svtools/source/control/ctrlbox.cxx +++ b/svtools/source/control/ctrlbox.cxx @@ -777,7 +777,10 @@ OutputDevice& FontNameBox::CachePreview(size_t nIndex, Point* pTopLeft) { if (nPage >= gFontPreviewVirDevs.size()) { - gFontPreviewVirDevs.emplace_back(m_xComboBox->create_render_virtual_device()); + if (comphelper::LibreOfficeKit::isActive()) + gFontPreviewVirDevs.emplace_back(VclPtr<VirtualDevice>::Create(DeviceFormat::WITH_ALPHA)); + else + gFontPreviewVirDevs.emplace_back(m_xComboBox->create_render_virtual_device()); VirtualDevice& rDevice = *gFontPreviewVirDevs.back(); rDevice.SetOutputSizePixel(Size(gUserItemSz.Width(), gUserItemSz.Height() * gPreviewsPerDevice)); weld::SetPointFont(rDevice, m_xComboBox->get_font()); |