diff options
author | Heiko Tietze <tietze.heiko@gmail.com> | 2023-04-25 09:04:28 +0200 |
---|---|---|
committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | 2023-04-25 11:21:12 +0200 |
commit | 1f7b725b55328f961fc9f124f22e3537e3cfed94 (patch) | |
tree | a85e30fb055fb3ebfdba7a5fac06a309253a0a6d /sc | |
parent | 1dec9d7f1a421af0dc4534204f2af550850cb60d (diff) |
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 <xiscofauli@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/output.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 |