diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-11-22 13:53:46 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-11-22 17:04:24 +0100 |
commit | 2a16decdcccf36f9fa4a1764f68e59c33517b892 (patch) | |
tree | d014921671c5f90295f419b0512ad0ec9ffa3846 /sc/source/ui/unoobj/servuno.cxx | |
parent | 017c6150e94a3a621f6f3e789fe72cac90a7bf11 (diff) |
tdf#128951: restore passing nullptr to ScTableSheetObj when not inserted yet
This partially reverts 009e7a54f40ebacd9dd4a394504c277789699801
Change-Id: I5a9605ff9d0ff1cd825968fb247b2a3bf4b2902a
Reviewed-on: https://gerrit.libreoffice.org/83464
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sc/source/ui/unoobj/servuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/servuno.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/servuno.cxx b/sc/source/ui/unoobj/servuno.cxx index ac0409d1cf15..b0173e1904f6 100644 --- a/sc/source/ui/unoobj/servuno.cxx +++ b/sc/source/ui/unoobj/servuno.cxx @@ -401,7 +401,8 @@ uno::Reference<uno::XInterface> ScServiceProvider::MakeInstance( switch (nType) { case Type::SHEET: - xRet.set(static_cast<sheet::XSpreadsheet*>(new ScTableSheetObj(pDocShell,0))); + // not inserted yet - DocShell=Null + xRet.set(static_cast<sheet::XSpreadsheet*>(new ScTableSheetObj(nullptr,0))); break; case Type::URLFIELD: case Type::PAGEFIELD: |