[Libreoffice-commits] core.git: svx/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sun Jul 19 19:19:39 UTC 2020
svx/source/sidebar/inspector/InspectorTextPanel.cxx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 9e7baa477530f96da6fbeeb07f0f6405a93bfe05
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Jul 18 15:53:09 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Jul 19 21:19:01 2020 +0200
cid#1465260 Unchecked return value
and
cid#1465257 Unchecked return value
Change-Id: Ibf3fe527368314124dc06050f54e16c88004cbed
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98993
Tested-by: Jenkins
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 6157f2bc67fb..6ab6b1043de3 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> pEntry = mpListBoxStyles->make_iterator();
- mpListBoxStyles->get_iter_first(*pEntry);
- mpListBoxStyles->iter_next(*pEntry);
+ if (!mpListBoxStyles->get_iter_first(*pEntry))
+ return;
+ if (!mpListBoxStyles->iter_next(*pEntry))
+ return;
mpListBoxStyles->collapse_row(*pEntry); // Collapse "Default Paragraph Style"
}
More information about the Libreoffice-commits
mailing list