summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2016-10-21 23:20:36 +0530
committerPranav Kant <pranavk@collabora.co.uk>2016-10-21 23:30:11 +0530
commit0633846d86bd23256e811c35678006bd5d90deb8 (patch)
tree5d0df578bf5042a63725a4dcf8f445ab3136da4f /sw/source
parent1e6c89bf752ff93efa1b782564257767d0165cc7 (diff)
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
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/uibase/shells/annotsh.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/uibase/shells/annotsh.cxx b/sw/source/uibase/shells/annotsh.cxx
index a8e7d505b09b..7dbfa4dbbd0f 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: