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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Oct 29 08:16:26 UTC 2019


 sc/source/ui/navipi/content.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5d07d19d0d2f036c5aa72fd933f2fe94295cc2df
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Oct 28 19:09:06 2019 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Oct 29 09:15:32 2019 +0100

    cid#1455158 Explicit null dereferenced
    
    Change-Id: Icdf6dd9bee5f917a6a6b26b3d80c0502a656948b
    Reviewed-on: https://gerrit.libreoffice.org/81625
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx
index af866cb5f054..74519392bbe5 100644
--- a/sc/source/ui/navipi/content.cxx
+++ b/sc/source/ui/navipi/content.cxx
@@ -1396,7 +1396,7 @@ void ScContentTree::DoDrag()
                             SCTAB nTab;
                             if ( rSrcDoc.GetTable( aText, nTab ) )
                             {
-                                ScRange aRange( 0,0,nTab, pLocalDoc->MaxCol(), pLocalDoc->MaxRow(),nTab );
+                                ScRange aRange(0, 0, nTab, rSrcDoc.MaxCol(), rSrcDoc.MaxRow(), nTab);
                                 lcl_DoDragCells( pSrcShell, aRange, (ScDragSrc::Navigator | ScDragSrc::Table), this );
                             }
                         }


More information about the Libreoffice-commits mailing list