[Libreoffice-commits] core.git: svx/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sun Jul 12 10:20:12 UTC 2020
svx/source/sidebar/inspector/InspectorTextPanel.cxx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit ec9b4bf1b671fa1b14ca51f0275480ab17da3d20
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Jul 11 19:38:56 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Jul 12 12:19:34 2020 +0200
cid#1465260 Unchecked return value
Change-Id: I0f4a71e4735bd5038b45a259bd5136ebcc4c66a6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98572
Tested-by: Caolán McNamara <caolanm at redhat.com>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/svx/source/sidebar/inspector/InspectorTextPanel.cxx b/svx/source/sidebar/inspector/InspectorTextPanel.cxx
index 652e63261713..1b0ea48a55c3 100644
--- a/svx/source/sidebar/inspector/InspectorTextPanel.cxx
+++ b/svx/source/sidebar/inspector/InspectorTextPanel.cxx
@@ -76,8 +76,10 @@ void InspectorTextPanel::updateEntries(const std::vector<TreeNode>& rStore)
});
std::unique_ptr<weld::TreeIter> xEntry = mxListBoxStyles->make_iterator();
- mxListBoxStyles->get_iter_first(*xEntry);
- mxListBoxStyles->iter_next(*xEntry);
+ if (!mxListBoxStyles->get_iter_first(*xEntry))
+ return;
+ if (!mxListBoxStyles->iter_next(*xEntry))
+ return;
mxListBoxStyles->collapse_row(*xEntry); // Collapse "Default Paragraph Style"
}
More information about the Libreoffice-commits
mailing list