| commit | 65b5a9848bd01cabbbee8f6e751679a04c1da10f | [log] |
|---|---|---|
| author | Tor Lillqvist <tml@iki.fi> | Fri May 29 16:18:24 2020 +0300 |
| committer | Tor Lillqvist <tml@collabora.com> | Mon Jun 22 16:24:40 2020 +0300 |
| tree | 72fa0f3d4dfba6640a0702e6c1da6cdf2a013f29 | |
| parent | b716b9a7894d17eb72ec6143676a3ae65c6974e3 [diff] |
tdf#128502: Avoid potential crash in mobile app with multiple open documents Not sure if actually needed, but can hardly harm. Change-Id: Ibb819818db40b2f086e5c1f2330a7f8f2fcc1727 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95148 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index 96ce59f..c812682 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx
@@ -541,7 +541,7 @@ int ScModelObj::getPart() { ScViewData* pViewData = ScDocShell::GetViewData(); return pViewData->GetViewShell()->getPart(); return pViewData ? pViewData->GetViewShell()->getPart() : 0; } OUString ScModelObj::getPartInfo( int nPart )