[Libreoffice-commits] core.git: sw/source
Samuel Mehrbrodt (via logerrit)
logerrit at kemper.freedesktop.org
Thu Aug 26 07:30:58 UTC 2021
sw/source/uibase/shells/drwbassh.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 2694a666b62701a8c0e546151c41f9c30aba00da
Author: Samuel Mehrbrodt <samuel.mehrbrodt at allotropia.de>
AuthorDate: Wed Aug 25 14:14:51 2021 +0200
Commit: Samuel Mehrbrodt <samuel.mehrbrodt at allotropia.de>
CommitDate: Thu Aug 26 09:30:24 2021 +0200
Fix crash when drawing shape
Fallout from 75cd2b0fa71c73ae815b80d8e42328024ea63555
Change-Id: I455519126d11bee1b809f9fd9476b2fdd0f1a524
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121034
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt at allotropia.de>
diff --git a/sw/source/uibase/shells/drwbassh.cxx b/sw/source/uibase/shells/drwbassh.cxx
index d0f1a5900e5d..3f440abc7b43 100644
--- a/sw/source/uibase/shells/drwbassh.cxx
+++ b/sw/source/uibase/shells/drwbassh.cxx
@@ -855,7 +855,10 @@ void SwDrawBaseShell::GetState(SfxItemSet& rSet)
case SID_COPY_HYPERLINK_LOCATION:
{
if (pSdrView->GetMarkedObjectCount() != 1)
+ {
rSet.DisableItem(nWhich);
+ break;
+ }
const SdrMarkList& rMarkList = pSdrView->GetMarkedObjectList();
SdrObject* pObj = rMarkList.GetMark(0)->GetMarkedSdrObj();
More information about the Libreoffice-commits
mailing list