diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-09-27 09:00:44 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-09-27 11:23:58 +0200 |
commit | b5ea727818114d4e0e51d5a52ffa254a375afab8 (patch) | |
tree | 748fdc4b4de3ae907cdc0160bf619844b8065663 /cui | |
parent | 71a327528f1f7ffabd157e258528888855ab6f01 (diff) |
cid#1453993 Unchecked return value
Change-Id: Ie30e1b40b8867246c793294b7b34b38a86f9ad01
Reviewed-on: https://gerrit.libreoffice.org/79670
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/treeopt.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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; |