summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells/grfsh.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2017-03-09 13:08:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-13 08:38:33 +0000
commit7c0e3d0b37131b12262d0f610505b3384923c4a1 (patch)
tree572046e375af0e25864ff2e155a0fa0226bd4ca7 /sw/source/uibase/shells/grfsh.cxx
parent25ea809f5b4548ff887aa4bb10bbf7b2fe86aedb (diff)
convert GraphicDrawMode to scoped enum
Change-Id: I18eec89c4e1ebb86d64297e7cef4b36bf12df59f Reviewed-on: https://gerrit.libreoffice.org/35004 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/shells/grfsh.cxx')
-rw-r--r--sw/source/uibase/shells/grfsh.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/shells/grfsh.cxx b/sw/source/uibase/shells/grfsh.cxx
index 9f3cb37f5645..0405fc7a4b67 100644
--- a/sw/source/uibase/shells/grfsh.cxx
+++ b/sw/source/uibase/shells/grfsh.cxx
@@ -600,7 +600,7 @@ void SwGrfShell::ExecAttr( SfxRequest &rReq )
case SID_ATTR_GRAF_MODE:
if( pItem )
aGrfSet.Put( SwDrawModeGrf(
- static_cast<const SfxUInt16Item*>(pItem)->GetValue() ));
+ (GraphicDrawMode)static_cast<const SfxUInt16Item*>(pItem)->GetValue() ));
break;
case SID_COLOR_SETTINGS:
@@ -777,8 +777,8 @@ void SwGrfShell::GetAttrState(SfxItemSet &rSet)
case SID_ATTR_GRAF_MODE:
if( !bParentCntProt )
- rSet.Put( SfxUInt16Item( nWhich, static_cast<const SwDrawModeGrf&>(
- aCoreSet.Get(RES_GRFATR_DRAWMODE)).GetValue() ));
+ rSet.Put( SfxUInt16Item( nWhich, (sal_uInt16)static_cast<const SwDrawModeGrf&>(
+ aCoreSet.Get(RES_GRFATR_DRAWMODE)).GetValue() ));
break;
case SID_GRFFILTER: