[Libreoffice-commits] core.git: cui/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Sep 27 09:25:23 UTC 2019
cui/source/options/treeopt.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit b5ea727818114d4e0e51d5a52ffa254a375afab8
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Sep 27 09:00:44 2019 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Sep 27 11:23:58 2019 +0200
cid#1453993 Unchecked return value
Change-Id: Ie30e1b40b8867246c793294b7b34b38a86f9ad01
Reviewed-on: https://gerrit.libreoffice.org/79670
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx
index 4163cc906945..e801425ad7a9 100644
--- a/cui/source/options/treeopt.cxx
+++ b/cui/source/options/treeopt.cxx
@@ -847,7 +847,9 @@ void OfaTreeOptionsDialog::SelectHdl_Impl()
{
std::unique_ptr<weld::TreeIter> xEntry(xTreeLB->make_iterator());
- xTreeLB->get_cursor(xEntry.get());
+ if (!xTreeLB->get_cursor(xEntry.get()))
+ return;
+
if (xCurrentPageEntry && xCurrentPageEntry->equal(*xEntry))
return;
More information about the Libreoffice-commits
mailing list