summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2020-01-09 09:58:11 +0000
committerMichael Meeks <michael.meeks@collabora.com>2020-01-09 17:09:23 +0100
commitf8359855cfbc54441015e23ea2ed7735daef2beb (patch)
tree78bedbfa017e644430368093a40aa649e08a4474 /sw
parent912cd707b5128c5ef9d365d8179cf2b65aeaaa1d (diff)
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 <michael.meeks@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/docvw/AnnotationWin2.cxx2
1 files changed, 1 insertions, 1 deletions
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()));