summaryrefslogtreecommitdiff
path: root/svx/source/core/graphichelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/core/graphichelper.cxx')
-rw-r--r--svx/source/core/graphichelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/core/graphichelper.cxx b/svx/source/core/graphichelper.cxx
index 5cd4e4074c3b..96f6788885a1 100644
--- a/svx/source/core/graphichelper.cxx
+++ b/svx/source/core/graphichelper.cxx
@@ -61,7 +61,7 @@ namespace drawing = com::sun::star::drawing;
void GraphicHelper::GetPreferredExtension( OUString& rExtension, const Graphic& rGraphic )
{
OUString aExtension = "png";
- switch( const_cast<Graphic&>( rGraphic ).GetLink().GetType() )
+ switch( rGraphic.GetLink().GetType() )
{
case GFX_LINK_TYPE_NATIVE_GIF:
aExtension = "gif";