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

New commits:
commit 1f7b725b55328f961fc9f124f22e3537e3cfed94
Author:     Heiko Tietze <tietze.he...@gmail.com>
AuthorDate: Tue Apr 25 09:04:28 2023 +0200
Commit:     Heiko Tietze <heiko.tie...@documentfoundation.org>
CommitDate: Tue Apr 25 11:21:12 2023 +0200

    Resolves tdf#154991 - Fix crash with hidden columns
    
    Hidden columns do not have a background that can be taken
    into account for the text overflow indicator's frame
    
    Change-Id: I325873aede07fd890777624308a3f5a41f0f1795
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150959
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Tested-by: Jenkins
    Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org>

diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx
index ab5b88062e24..025151e40501 100644
--- a/sc/source/ui/view/output.cxx
+++ b/sc/source/ui/view/output.cxx
@@ -2709,7 +2709,7 @@ void ScOutputData::DrawClipMarks()
                     tools::Long nMarkPixel = static_cast<tools::Long>( 
SC_CLIPMARK_SIZE * mnPPTX );
                     Size aMarkSize( nMarkPixel, (nMarkPixel-1)*2 );
 
-                    const Color aColor = pInfo->pBackground->GetColor();
+                    const Color aColor = pInfo->pBackground ? 
pInfo->pBackground->GetColor() : COL_AUTO;
                     if ( aColor == COL_AUTO ? bIsDarkBackground : 
aColor.IsDark() )
                         mpDev->SetDrawMode( nOldDrawMode | 
DrawModeFlags::WhiteLine );
                     else

Reply via email to