[Libreoffice-commits] core.git: svx/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jul 9 12:50:20 UTC 2020
svx/source/form/navigatortree.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit a51f99f6ca7e95a4b9e92851ca2cda832584faff
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Jul 9 10:14:03 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Jul 9 14:49:20 2020 +0200
cid#1465229 Unchecked return value
Change-Id: I7e12612f1aa2570df8f5b0347f19dcb96532aa26
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98415
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/svx/source/form/navigatortree.cxx b/svx/source/form/navigatortree.cxx
index 70d1e713ac40..8bc70bdb9510 100644
--- a/svx/source/form/navigatortree.cxx
+++ b/svx/source/form/navigatortree.cxx
@@ -711,7 +711,8 @@ namespace svxform
sal_Int8 nAction = m_aControlExchange.isClipboardOwner() && doingKeyboardCut( ) ? DND_ACTION_MOVE : DND_ACTION_COPY;
std::unique_ptr<weld::TreeIter> xSelected(m_xTreeView->make_iterator());
- m_xTreeView->get_selected(xSelected.get());
+ if (!m_xTreeView->get_selected(xSelected.get()))
+ xSelected.reset();
return nAction == implAcceptDataTransfer(aClipboardContent.GetDataFlavorExVector(), nAction, xSelected.get(), false);
}
More information about the Libreoffice-commits
mailing list