| commit | 12a2b1260dbcca2d99cc54d449cc914279ade43e | [log] |
|---|---|---|
| author | Mike Kaganski <mike.kaganski@collabora.com> | Sun Jan 14 12:16:48 2024 +0600 |
| committer | Xisco Fauli <xiscofauli@libreoffice.org> | Mon Jan 15 16:23:42 2024 +0100 |
| tree | 7d3e6ac66dff4b0fc89ad439e5e77f271bb7577d | |
| parent | 75026d55a5ad58ac2bba790ec89caa38e7f44136 [diff] |
tdf#159174: there may be no tabs in the clipboard document Change-Id: I053d91bf44e39e14ade9face14084a107d0df898 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162041 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> (cherry picked from commit 0b93cc83993b3cd78aa05556342839a21c96dc5a) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162092 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> (cherry picked from commit 53930f9ac996689133605c3ee56406907960423d) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162099
diff --git a/sc/source/ui/view/printfun.cxx b/sc/source/ui/view/printfun.cxx index a615208..84e21da 100644 --- a/sc/source/ui/view/printfun.cxx +++ b/sc/source/ui/view/printfun.cxx
@@ -466,6 +466,9 @@ static void lcl_HidePrint( const ScTableInfo& rTabInfo, SCCOL nX1, SCCOL nX2 ) void ScPrintFunc::DrawToDev(ScDocument& rDoc, OutputDevice* pDev, double /* nPrintFactor */, const tools::Rectangle& rBound, ScViewData* pViewData, bool bMetaFile) { if (rDoc.GetMaxTableNumber() < 0) return; //! evaluate nPrintFactor !!! SCTAB nTab = 0;