diff options
author | tushar <tusharrai282@gmail.com> | 2021-04-26 14:27:02 +0530 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2021-04-28 20:44:54 +0200 |
commit | 6e66b30d9287b418bed35400c77b257b97cf26ec (patch) | |
tree | 126bb1926861ce644c5afff566b9b197b936ee72 /sc | |
parent | 99668e79c13fee09f8d776dbcd28e7667d7f68fe (diff) |
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@googlemail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/hdrcont.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |