From c200aa27ee4a0f5a89af6e970c2c22580029eded Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 21 May 2020 15:54:15 +0100 Subject: remove Size arg from Window::Draw and depend on GetSizePixel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 90% of cases pass GetSizePixel as the Size arg already and this aligns Window::Draw with how Window::PaintToDevice works Change-Id: If5b024179a4b7a3b099177c2f6d4b1fb006b95ef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94644 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sw/inc/AnnotationWin.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/inc/AnnotationWin.hxx') diff --git a/sw/inc/AnnotationWin.hxx b/sw/inc/AnnotationWin.hxx index 50d2eb010d6a..080d8de42ef0 100644 --- a/sw/inc/AnnotationWin.hxx +++ b/sw/inc/AnnotationWin.hxx @@ -176,7 +176,7 @@ class SAL_DLLPUBLIC_RTTI SwAnnotationWin : public vcl::Window void ChangeSidebarItem( SwSidebarItem const & rSidebarItem ); virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible() override; - virtual void Draw(OutputDevice* pDev, const Point&, const Size&, DrawFlags) override; + virtual void Draw(OutputDevice* pDev, const Point&, DrawFlags) override; virtual void KeyInput(const KeyEvent& rKeyEvt) override; virtual void MouseButtonDown(const MouseEvent& rMouseEvent) override; virtual void MouseButtonUp(const MouseEvent& rMouseEvent) override; -- cgit