summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/shells/grfsh.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/sw/source/uibase/shells/grfsh.cxx b/sw/source/uibase/shells/grfsh.cxx
index bb090fed460de..4be126fc15951 100644
--- a/sw/source/uibase/shells/grfsh.cxx
+++ b/sw/source/uibase/shells/grfsh.cxx
@@ -689,11 +689,12 @@ void SwGrfShell::ExecAttr( SfxRequest const &rReq )
const GraphicObject* pFilterObj( GetShell().GetGraphicObj() );
if ( pFilterObj )
{
- GraphicObject aFilterObj( *pFilterObj );
- if( SvxGraphicFilterResult::NONE ==
- SvxGraphicFilter::ExecuteGrfFilterSlot( rReq, aFilterObj ))
- GetShell().ReRead( OUString(), OUString(),
- &aFilterObj.GetGraphic() );
+ SvxGraphicFilter::ExecuteGrfFilterSlot( rReq, *pFilterObj,
+ [this] (GraphicObject aFilteredObject) -> void
+ {
+ GetShell().ReRead( OUString(), OUString(),
+ &aFilteredObject.GetGraphic() );
+ });
}
}
break;