diff options
Diffstat (limited to 'sw/inc/grfatr.hxx')
-rw-r--r-- | sw/inc/grfatr.hxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sw/inc/grfatr.hxx b/sw/inc/grfatr.hxx index 396c4439d27a..b04b127d85ff 100644 --- a/sw/inc/grfatr.hxx +++ b/sw/inc/grfatr.hxx @@ -259,11 +259,18 @@ public: sal_uInt8 nMemberId ) override; }; -class SW_DLLPUBLIC SwDrawModeGrf : public SfxEnumItem<GraphicDrawMode> +// MSVC hack: +class SwDrawModeGrf_Base: public SfxEnumItem<GraphicDrawMode> { +protected: + SwDrawModeGrf_Base(GraphicDrawMode nMode): + SfxEnumItem(RES_GRFATR_DRAWMODE, nMode) {} +}; + +class SW_DLLPUBLIC SwDrawModeGrf : public SwDrawModeGrf_Base { public: SwDrawModeGrf( GraphicDrawMode nMode = GraphicDrawMode::Standard ) - : SfxEnumItem( RES_GRFATR_DRAWMODE, nMode ) + : SwDrawModeGrf_Base( nMode ) {} // pure virtual methods of SfxPoolItem |