[Libreoffice-commits] core.git: sc/source
tushar (via logerrit)
logerrit at kemper.freedesktop.org
Wed Apr 28 18:45:37 UTC 2021
sc/source/ui/view/hdrcont.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 6e66b30d9287b418bed35400c77b257b97cf26ec
Author: tushar <tusharrai282 at gmail.com>
AuthorDate: Mon Apr 26 14:27:02 2021 +0530
Commit: Markus Mohrhard <markus.mohrhard at googlemail.com>
CommitDate: Wed Apr 28 20:44:54 2021 +0200
tdf#141904 Blue row number for autofilter only when pTab is not NULL.
Change-Id: Ibdf1efbff34bc58912a5a776d47ccfd784d3111e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114647
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
diff --git a/sc/source/ui/view/hdrcont.cxx b/sc/source/ui/view/hdrcont.cxx
index 34ebc328eb82..e322394d2025 100644
--- a/sc/source/ui/view/hdrcont.cxx
+++ b/sc/source/ui/view/hdrcont.cxx
@@ -394,7 +394,7 @@ void ScHeaderControl::Paint( vcl::RenderContext& /*rRenderContext*/, const tools
// tdf#89841 Use blue row numbers when Autofilter selected
std::vector<sc::ColRowSpan> aSpans;
- if (bVertical)
+ if (bVertical && pTabView)
{
SCTAB nTab = pTabView->GetViewData().GetTabNo();
ScDocument& rDoc = pTabView->GetViewData().GetDocument();
More information about the Libreoffice-commits
mailing list