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

Jim MacArthur (via logerrit) logerrit at kemper.freedesktop.org
Fri Jun 28 09:09:51 UTC 2019


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

New commits:
commit fc8a35ab89c5043cb8819ef6a8f7e5373d4e625e
Author:     Jim MacArthur <jim.macarthur at codethink.co.uk>
AuthorDate: Tue Jun 11 13:08:55 2019 +0100
Commit:     Samuel Mehrbrodt <Samuel.Mehrbrodt at 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.Mehrbrodt at 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)
     {


More information about the Libreoffice-commits mailing list