diff options
author | Jim MacArthur <jim.macarthur@codethink.co.uk> | 2019-05-07 17:02:16 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-05-10 15:18:03 +0100 |
commit | 3a8db5bcfb667353c11f87acc0ad7ec8cf19e651 (patch) | |
tree | 34fc0c52f84cd2cbbb5c1eb7dd1c919ade1041f8 | |
parent | 6fa278e5959ffccd2160f06e65afc6c5b43a43b3 (diff) |
Make GetTopReplyNote safe when this is the top reply
Change-Id: Ibabd845f8836611649f598a75e2a63ce8a94b6c7
-rw-r--r-- | sw/source/uibase/docvw/AnnotationWin2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/docvw/AnnotationWin2.cxx b/sw/source/uibase/docvw/AnnotationWin2.cxx index f6ce70f82731..1db19cdb51b3 100644 --- a/sw/source/uibase/docvw/AnnotationWin2.cxx +++ b/sw/source/uibase/docvw/AnnotationWin2.cxx @@ -1420,7 +1420,7 @@ void SwAnnotationWin::SetViewState(ViewState bViewState) SwAnnotationWin* SwAnnotationWin::GetTopReplyNote() { - SwAnnotationWin* pTopNote = nullptr; + SwAnnotationWin* pTopNote = this; SwAnnotationWin* pSidebarWin = IsFollow() ? mrMgr.GetNextPostIt(KEY_PAGEUP, this) : nullptr; while (pSidebarWin) { |