[Libreoffice-commits] core.git: vcl/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 16 12:25:08 UTC 2019


 vcl/source/app/salvtables.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5d3e9ababc0b3e049a7556b210bb6349e3e3322c
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Aug 16 08:54:45 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Aug 16 14:24:27 2019 +0200

    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 at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index 3dfe6b2bd7a9..0ca121c0e8ac 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -3094,7 +3094,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
         {


More information about the Libreoffice-commits mailing list