From f8359855cfbc54441015e23ea2ed7735daef2beb Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Thu, 9 Jan 2020 09:58:11 +0000 Subject: sw: tolerate null ShadowOverlay object as the rest of the code does. Change-Id: I552c0f11b22212d36bcaee33432e2a10d4df58ac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86473 Tested-by: Jenkins Reviewed-by: Michael Meeks --- sw/source/uibase/docvw/AnnotationWin2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw') diff --git a/sw/source/uibase/docvw/AnnotationWin2.cxx b/sw/source/uibase/docvw/AnnotationWin2.cxx index 1f8cb4cbbd05..f243bf503dc7 100644 --- a/sw/source/uibase/docvw/AnnotationWin2.cxx +++ b/sw/source/uibase/docvw/AnnotationWin2.cxx @@ -756,7 +756,7 @@ void SwAnnotationWin::SetPosAndSize() } } - if (bChange) + if (mpShadow && bChange) { Point aStart = EditWin().PixelToLogic(GetPosPixel()+Point(0,GetSizePixel().Height())); Point aEnd = EditWin().PixelToLogic(GetPosPixel()+Point(GetSizePixel().Width()-1,GetSizePixel().Height())); -- cgit