diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-08-14 14:04:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-08-15 08:09:14 +0200 |
commit | 751104215e6c4b42b68dd255e48d771e319555b4 (patch) | |
tree | 0260b11dae4db6087e8a6fd1c46225c970fbd045 /editeng | |
parent | 88617f24d5a724c86a89058682ac04d7af9c8ea3 (diff) |
fix crash in LOK
ImpEditView::lokSelectionCallback(std::optional<tools::PolyPolygon>
const&, bool, bool)
editeng/source/editeng/impedit.cxx:446
ImpEditView::DrawSelectionXOR(EditSelection, vcl::Region*,
OutputDevice*)
editeng/source/editeng/impedit.cxx:642
ImpEditEngine::Paint(ImpEditView*, tools::Rectangle const&,
OutputDevice*)
editeng/source/editeng/impedit3.cxx:4164
ScGridWindow::DrawContent(OutputDevice&, ScTableInfo const&,
ScOutputData&, bool)
sc/source/ui/view/gridwin4.cxx:1226 (discriminator 1)
ScGridWindow::PaintTile(VirtualDevice&, int, int, int, int, long, long,
short, int)
sc/source/ui/view/gridwin4.cxx:1700
ScModelObj::paintTile(VirtualDevice&, int, int, int, int, long, long)
Change-Id: Ib142e6bd52bf0271d8e0e97af7701454144ead9d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155607
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx index 2ccb892ab690..f69b0d1cad82 100644 --- a/editeng/source/editeng/impedit.cxx +++ b/editeng/source/editeng/impedit.cxx @@ -350,7 +350,7 @@ void ImpEditView::lokSelectionCallback(const std::optional<tools::PolyPolygon> & aItems.emplace_back("endHandleVisible", OString::boolean(bEndHandleVisible)); pNotifier->notifyWindow(pParent->GetLOKWindowId(), "text_selection", aItems); } - else + else if (mpViewShell) { pOutWin->GetOutDev()->Push(vcl::PushFlags::MAPMODE); if (pOutWin->GetMapMode().GetMapUnit() == MapUnit::MapTwip) |