summaryrefslogtreecommitdiff
path: root/vcl/headless/CustomWidgetDraw.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/headless/CustomWidgetDraw.cxx')
-rw-r--r--vcl/headless/CustomWidgetDraw.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/headless/CustomWidgetDraw.cxx b/vcl/headless/CustomWidgetDraw.cxx
index ca0af690a874..3bb5b53ec9a5 100644
--- a/vcl/headless/CustomWidgetDraw.cxx
+++ b/vcl/headless/CustomWidgetDraw.cxx
@@ -24,6 +24,7 @@ WidgetThemeLibrary* CustomWidgetDraw::s_pWidgetImplementation = nullptr;
CustomWidgetDraw::CustomWidgetDraw(SvpSalGraphics& rGraphics)
: m_rGraphics(rGraphics)
{
+#ifndef DISABLE_DYNLOADING
if (!s_pWidgetImplementation)
{
OUString aUrl("${LO_LIB_DIR}/" SVLIBRARY("vcl_widget_theme"));
@@ -46,6 +47,7 @@ CustomWidgetDraw::CustomWidgetDraw(SvpSalGraphics& rGraphics)
pSVData->maNWFData.mbNoFocusRectsForFlatButtons = true;
}
}
+#endif
}
CustomWidgetDraw::~CustomWidgetDraw() {}