[Libreoffice-commits] core.git: sw/source

Michael Meeks (via logerrit) logerrit at kemper.freedesktop.org
Thu Jan 9 16:10:33 UTC 2020


 sw/source/uibase/docvw/AnnotationWin2.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f8359855cfbc54441015e23ea2ed7735daef2beb
Author:     Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Thu Jan 9 09:58:11 2020 +0000
Commit:     Michael Meeks <michael.meeks at collabora.com>
CommitDate: Thu Jan 9 17:09:23 2020 +0100

    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 at collabora.com>

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()));


More information about the Libreoffice-commits mailing list