diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-08-03 15:31:02 +0200 |
---|---|---|
committer | Aron Budea <aron.budea@collabora.com> | 2017-08-15 14:16:06 +0200 |
commit | bbe5291ace311b9f0f311dbda7c19b82708ee227 (patch) | |
tree | 54de7e053dd3ec6aaf1a9a843faf673c711db8c4 /chart2 | |
parent | 29c428b9123fe54642b208c09f76469afc617948 (diff) |
Fix JunitTest chart2 unoapi
Change-Id: I41b8df11778570888cd6943d25d72ca33661c305
Reviewed-on: https://gerrit.libreoffice.org/40723
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
(cherry picked from commit 3d8846a51acc509118a0af6ac16539c19109ff8d)
Reviewed-on: https://gerrit.libreoffice.org/41171
Reviewed-by: Aron Budea <aron.budea@collabora.com>
Tested-by: Aron Budea <aron.budea@collabora.com>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/main/ChartWindow.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chart2/source/controller/main/ChartWindow.cxx b/chart2/source/controller/main/ChartWindow.cxx index d50a741cd001..58d6c291cb74 100644 --- a/chart2/source/controller/main/ChartWindow.cxx +++ b/chart2/source/controller/main/ChartWindow.cxx @@ -322,6 +322,9 @@ void ChartWindow::Invalidate( const vcl::Region& rRegion, InvalidateFlags nFlags void ChartWindow::LogicInvalidate(const Rectangle* pRectangle) { + SfxViewShell* pCurrentShell = SfxViewShell::Current(); + if ( nullptr == pCurrentShell ) + return; OString sRectangle; if (!pRectangle) { @@ -366,7 +369,6 @@ void ChartWindow::LogicInvalidate(const Rectangle* pRectangle) sRectangle = aRectangle.toString(); } - SfxViewShell* pCurrentShell = SfxViewShell::Current(); SfxLokHelper::notifyInvalidation(pCurrentShell, sRectangle); } |