diff options
author | Jim MacArthur <jim.macarthur@codethink.co.uk> | 2019-06-11 13:08:55 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-06-28 11:09:10 +0200 |
commit | fc8a35ab89c5043cb8819ef6a8f7e5373d4e625e (patch) | |
tree | 29aa10704c10a2d4a962eecab91f4e048baccbf9 | |
parent | 0269641d65dff97fa75892d15ffcb4ea81d70964 (diff) |
AnnotationWin: Fix for GetTopReplyNote
This allows GetTopReplyNote to work when 'this' is already
the top reply note in a thread.
Change-Id: Ic4cd5d18bdd022bd22bc97a0b0257639ef3f027d
Reviewed-on: https://gerrit.libreoffice.org/74450
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
-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 b91501ea5813..eed1976e9b20 100644 --- a/sw/source/uibase/docvw/AnnotationWin2.cxx +++ b/sw/source/uibase/docvw/AnnotationWin2.cxx @@ -1425,7 +1425,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) { |