diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2018-03-07 01:33:25 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2018-03-07 07:40:12 +0100 |
commit | 455fe33df4d498d8c374d43f57caf14897636749 (patch) | |
tree | cb0b7f28dace75c3b247ae2fdacc1dd54dbfae8c /sc/source/ui/uitest | |
parent | 1b0beef8794210b2af49d8c4a00ca7d4e3ebedb7 (diff) |
uitest: fix small bug when trying to select different sheet in calc
Change-Id: I83e2b8dc1b0da9f28475994493e3776c898a5729
Reviewed-on: https://gerrit.libreoffice.org/50853
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source/ui/uitest')
-rw-r--r-- | sc/source/ui/uitest/uiobject.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/ui/uitest/uiobject.cxx b/sc/source/ui/uitest/uiobject.cxx index 323ae82e517a..3e98e1535bfc 100644 --- a/sc/source/ui/uitest/uiobject.cxx +++ b/sc/source/ui/uitest/uiobject.cxx @@ -131,7 +131,9 @@ void ScGridWinUIObject::execute(const OUString& rAction, auto itr = rParameters.find("TABLE"); const OUString rStr = itr->second; sal_Int32 nTab = rStr.toUInt32(); - mxGridWindow->getViewData()->SetTabNo(nTab); + ScTabView* pTabView = mxGridWindow->getViewData()->GetView(); + if (pTabView) + pTabView->SetTabNo(nTab); } else if (rParameters.find("OBJECT") != rParameters.end()) { |