sw/source/uibase/shells/annotsh.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 0633846d86bd23256e811c35678006bd5d90deb8 Author: Pranav Kant <[email protected]> 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: _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
