summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/sdwindow.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-10-24 14:12:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-31 06:04:58 +0000
commitee33745ced5ae12f9ae7735fac16a7298ccae474 (patch)
tree086da25f3d1a629e57956931d998edd0e42d761c /sd/source/ui/view/sdwindow.cxx
parent49909dca5856aada5340d44f03a271d38e038039 (diff)
tdf#103334 - EDITING: Undo on bullet point style
I have checked the normal model and the editing model after UNDO, and all seems to be well, this is purely a rendering/lack-of-invalidation issue. The extra invalidation I add here is restricted to the UNDO case to prevent tripping up a LOK unit test (SdTiledRenderingTest::testCursorViews). I confess to not having followed the invalidation logic all the way to see why exactly it makes the bug go away. Change-Id: I34f7d84526462665b1ec09aba966c98cd4e8795f Reviewed-on: https://gerrit.libreoffice.org/30225 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/view/sdwindow.cxx')
-rw-r--r--sd/source/ui/view/sdwindow.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/view/sdwindow.cxx b/sd/source/ui/view/sdwindow.cxx
index bd60739f0515..af5ddf90c8b8 100644
--- a/sd/source/ui/view/sdwindow.cxx
+++ b/sd/source/ui/view/sdwindow.cxx
@@ -226,7 +226,8 @@ void Window::KeyInput(const KeyEvent& rKEvt)
{
mpViewShell->GetDoc()->dumpAsXml(nullptr);
OutlinerView *pOLV = mpViewShell->GetView()->GetTextEditOutlinerView();
- pOLV->GetEditView().GetEditEngine()->dumpAsXmlEditDoc(nullptr);
+ if (pOLV)
+ pOLV->GetEditView().GetEditEngine()->dumpAsXmlEditDoc(nullptr);
return;
}