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

New commits:
commit 63597069fbb3209db1b4acd3c3e85b512b5d717c
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Thu May 29 23:00:16 2025 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Fri May 30 00:23:10 2025 +0200

    tdf#166767: fix crash quiting LibreOffice with something on the clipboard
    
    No unittest caught this when
    
    commit d8ab8992bd35aedfc1d2b0debebab0d623aa8d09
    Author: Xisco Fauli <xiscofa...@libreoffice.org>
    Date:   Mon May 26 11:06:06 2025 +0200
    
        ScViewData: pass ScDocShell by ref
    
    was executed on Jenkins so I don't know how to test it
    
    Change-Id: I4570bb47af06390baabadf84d3513b5d10c7b4d0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186025
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Tested-by: Jenkins

diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx
index 5efa161e749e..112282e65a56 100644
--- a/sc/source/ui/app/transobj.cxx
+++ b/sc/source/ui/app/transobj.cxx
@@ -100,7 +100,7 @@ void ScTransferObj::GetAreaSize( const ScDocument& rDoc, 
SCTAB nTab1, SCTAB nTab
 void ScTransferObj::PaintToDev( OutputDevice* pDev, ScDocument& rDoc, double 
nPrintFactor,
                                 const ScRange& rBlock )
 {
-    if (rDoc.GetMaxTableNumber() < 0)
+    if (!rDoc.GetDocumentShell())
         return;
 
     tools::Rectangle aBound( Point(), pDev->GetOutputSize() );      //! use 
size from clip area?

Reply via email to