diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-05-21 09:53:13 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-05-21 12:52:01 +0200 |
commit | 654d5434e50e72456ce11bfe69d9d86ef0551159 (patch) | |
tree | 056a8c3a189d308f900a714d4e21e4f4ce29d5d7 /svx | |
parent | d7f1ca82198e1cc73fe4bb38f3034c6dc110af83 (diff) |
turn off OutputToWindow during dtor
Change-Id: I46d45c2487b7d4ac99d48ce0fc49bed120291f3c
Reviewed-on: https://gerrit.libreoffice.org/72668
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/graphctl.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/svx/source/dialog/graphctl.cxx b/svx/source/dialog/graphctl.cxx index 470912a649c5..fea3d733157b 100644 --- a/svx/source/dialog/graphctl.cxx +++ b/svx/source/dialog/graphctl.cxx @@ -1516,6 +1516,18 @@ void SvxGraphCtrlView::InvalidateOneWin(OutputDevice& rDevice, const tools::Rect SdrView::InvalidateOneWin(rDevice, rArea); } +SvxGraphCtrlView::~SvxGraphCtrlView() +{ + // turn SetOutputToWindow back off again before + // turning back into our baseclass during dtoring + const sal_uInt32 nWindowCount(PaintWindowCount()); + for (sal_uInt32 nWinNum(0); nWinNum < nWindowCount; nWinNum++) + { + SdrPaintWindow* pPaintWindow = GetPaintWindow(nWinNum); + pPaintWindow->SetOutputToWindow(false); + } +} + Point SvxGraphCtrl::GetPositionInDialog() const { int x, y, width, height; |