summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJim MacArthur <jim.macarthur@codethink.co.uk>2019-06-11 13:08:55 +0100
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-06-28 11:09:10 +0200
commitfc8a35ab89c5043cb8819ef6a8f7e5373d4e625e (patch)
tree29aa10704c10a2d4a962eecab91f4e048baccbf9 /sw
parent0269641d65dff97fa75892d15ffcb4ea81d70964 (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>
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 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)
{