diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2024-03-04 19:34:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-03-05 11:57:51 +0100 |
commit | 1842ad9fd51f5384f78df60c3c1f61ba631896f4 (patch) | |
tree | 60a83c84d1f009a405ce514501de4131633284f7 /sc/source | |
parent | c87cb8bca3804bfe853572dd0e7c47b64ccab9a5 (diff) |
tdf#159933 crash when applying Solarize filter to raster image
regression from
commit 07b26af18d45ad7ecacc30c2c4cb2c23033e9f2d
Author: Noel Grandin <noel.grandin@collabora.co.uk>
Date: Mon Jan 22 16:01:03 2024 +0200
make the graphic filter dialogs async
Change-Id: I6463ef4d20bc5a994c6f1a5f937bb7e982c1c5a5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164398
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/drawfunc/graphsh.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/drawfunc/graphsh.cxx b/sc/source/ui/drawfunc/graphsh.cxx index c383d6e42620..1cbdf0f52e29 100644 --- a/sc/source/ui/drawfunc/graphsh.cxx +++ b/sc/source/ui/drawfunc/graphsh.cxx @@ -112,7 +112,7 @@ void ScGraphicShell::ExecuteFilter( const SfxRequest& rReq ) if( pGraphicObj->GetGraphicType() == GraphicType::Bitmap ) { SvxGraphicFilter::ExecuteGrfFilterSlot( rReq, pGraphicObj->GetGraphicObject(), - [this, pView, pGraphicObj, pObj] (GraphicObject aFilterObj) -> void + [pView, pGraphicObj, pObj] (GraphicObject aFilterObj) -> void { if( SdrPageView* pPageView = pView->GetSdrPageView() ) { @@ -123,10 +123,11 @@ void ScGraphicShell::ExecuteFilter( const SfxRequest& rReq ) pView->ReplaceObjectAtView( pObj, *pPageView, pFilteredObj.get() ); pView->EndUndo(); } - Invalidate(); }); + return; } } + Invalidate(); } void ScGraphicShell::GetExternalEditState( SfxItemSet& rSet ) |