summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2020-03-08 21:47:40 -0800
committerJim Raykowski <raykowj@gmail.com>2020-03-09 22:24:16 +0100
commitb39c08773db9bea776001c6ccf043684c2dfe08d (patch)
tree39c65e9af8f4a84b3556302dfc5a524be7e12765
parent2ede753a8b7adecbf6ca78745e43e23c7498e289 (diff)
tdf#131208 Don't try to set cursor focus after style apply
It seems after a style is applied, the outliner view pointer points to an OutlinerView that has been removed. This results in a crash when trying to access OutlinerView functions to set cursor focus to the document. Avoid this by checking if a style has just been applied. Change-Id: Idda11567506fcc60a830dce70b86e12e2079c7a8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90198 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
-rw-r--r--sd/source/ui/view/drtxtob1.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/view/drtxtob1.cxx b/sd/source/ui/view/drtxtob1.cxx
index 288e8b3c1ea3..3c8f188abff5 100644
--- a/sd/source/ui/view/drtxtob1.cxx
+++ b/sd/source/ui/view/drtxtob1.cxx
@@ -827,7 +827,7 @@ void TextObjectBar::Execute( SfxRequest &rReq )
break;
}
- if ( pOLV )
+ if ( nSlot != SID_STYLE_APPLY && pOLV )
{
pOLV->ShowCursor();
pOLV->GetWindow()->GrabFocus();