summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-08-16 08:54:45 +0100
committerXisco Faulí <xiscofauli@libreoffice.org>2019-08-19 09:11:35 +0200
commitef0d0e4b7d1e0ca5ed74db6345618f3b0444fd1f (patch)
treebbe34c0b427eda8cd09f90e8aba81677e78f58b6 /vcl
parentc50033a000d85f967bd5300dea0f9fec3411e501 (diff)
Resolves: tdf#126951 crash in custom slide show
on selecting entry 0 which doesn't exist Change-Id: I67656bed63f9055bc6c5dd5781e79f967996500d Reviewed-on: https://gerrit.libreoffice.org/77560 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 5d3e9ababc0b3e049a7556b210bb6349e3e3322c) Reviewed-on: https://gerrit.libreoffice.org/77696 Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/app/salvtables.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index 88e1b1da61e1..dd3a7f26bbe0 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -2073,7 +2073,7 @@ public:
{
assert(m_xTreeView->IsUpdateMode() && "don't select when frozen");
disable_notify_events();
- if (pos == -1)
+ if (pos == -1 || (pos == 0 && n_children() == 0))
m_xTreeView->SelectAll(false);
else
{