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

New commits:
commit fc8a35ab89c5043cb8819ef6a8f7e5373d4e625e
Author:     Jim MacArthur <jim.macart...@codethink.co.uk>
AuthorDate: Tue Jun 11 13:08:55 2019 +0100
Commit:     Samuel Mehrbrodt <samuel.mehrbr...@cib.de>
CommitDate: Fri Jun 28 11:09:10 2019 +0200

    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.mehrbr...@cib.de>

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)
     {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to