Kaydet (Commit) 654d5434 authored tarafından Caolán McNamara's avatar Caolán McNamara

turn off OutputToWindow during dtor

Change-Id: I46d45c2487b7d4ac99d48ce0fc49bed120291f3c
Reviewed-on: https://gerrit.libreoffice.org/72668
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst d7f1ca82
...@@ -261,6 +261,8 @@ public: ...@@ -261,6 +261,8 @@ public:
{ {
} }
virtual ~SvxGraphCtrlView() override;
// override these so we can get the occasions SdrPaintView would call Window::Invalidate on its vcl::Window // override these so we can get the occasions SdrPaintView would call Window::Invalidate on its vcl::Window
// if it had one, and route to WidgetController::Invalidate instead // if it had one, and route to WidgetController::Invalidate instead
virtual rtl::Reference<sdr::overlay::OverlayManager> CreateOverlayManager(OutputDevice& rDevice) const override; virtual rtl::Reference<sdr::overlay::OverlayManager> CreateOverlayManager(OutputDevice& rDevice) const override;
......
...@@ -1516,6 +1516,18 @@ void SvxGraphCtrlView::InvalidateOneWin(OutputDevice& rDevice, const tools::Rect ...@@ -1516,6 +1516,18 @@ void SvxGraphCtrlView::InvalidateOneWin(OutputDevice& rDevice, const tools::Rect
SdrView::InvalidateOneWin(rDevice, rArea); 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 Point SvxGraphCtrl::GetPositionInDialog() const
{ {
int x, y, width, height; int x, y, width, height;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment