[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.1' - sw/source

Pranav Kant pranavk at collabora.co.uk
Fri Oct 21 18:01:14 UTC 2016


 sw/source/uibase/shells/annotsh.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 0633846d86bd23256e811c35678006bd5d90deb8
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Fri Oct 21 23:20:36 2016 +0530

    sw: Comment deletion by author - use active comment if no args
    
    In case there are no arguments provided to .uno:DeleteAuthor lets
    use the author of the active comment window.
    
    Change-Id: I761824f3d9bf90584a99be1015a52d5ddae7edde

diff --git a/sw/source/uibase/shells/annotsh.cxx b/sw/source/uibase/shells/annotsh.cxx
index a8e7d50..7dbfa4db 100644
--- a/sw/source/uibase/shells/annotsh.cxx
+++ b/sw/source/uibase/shells/annotsh.cxx
@@ -1123,6 +1123,8 @@ void SwAnnotationShell::NoteExec(SfxRequest &rReq)
             const SfxStringItem* pItem = rReq.GetArg<SfxStringItem>(nSlot);
             if ( pItem )
                 pPostItMgr->Delete( pItem->GetValue() );
+            else if ( pPostItMgr->HasActiveSidebarWin() )
+                pPostItMgr->Delete( pPostItMgr->GetActiveSidebarWin()->GetAuthor() );
             break;
         }
         case FN_HIDE_NOTE:


More information about the Libreoffice-commits mailing list