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

New commits:
commit 6e66b30d9287b418bed35400c77b257b97cf26ec
Author:     tushar <tusharrai...@gmail.com>
AuthorDate: Mon Apr 26 14:27:02 2021 +0530
Commit:     Markus Mohrhard <markus.mohrh...@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.mohrh...@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();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to