summaryrefslogtreecommitdiffstats
path: root/chart2
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2017-08-03 15:31:02 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2017-08-03 17:32:00 +0200
commit3d8846a51acc509118a0af6ac16539c19109ff8d (patch)
treee53e4bdb29e7e4bbd62edb7197fe73ed6a32b7d5 /chart2
parentResolves: tdf#111087 change names from bmp to png (diff)
downloadcore-3d8846a51acc509118a0af6ac16539c19109ff8d.tar.gz
core-3d8846a51acc509118a0af6ac16539c19109ff8d.zip
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>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/main/ChartWindow.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/chart2/source/controller/main/ChartWindow.cxx b/chart2/source/controller/main/ChartWindow.cxx
index 717704fcda27..1b5ffa817373 100644
--- a/chart2/source/controller/main/ChartWindow.cxx
+++ b/chart2/source/controller/main/ChartWindow.cxx
@@ -316,6 +316,9 @@ void ChartWindow::Invalidate( const vcl::Region& rRegion, InvalidateFlags nFlags
void ChartWindow::LogicInvalidate(const tools::Rectangle* pRectangle)
{
+ SfxViewShell* pCurrentShell = SfxViewShell::Current();
+ if ( nullptr == pCurrentShell )
+ return;
OString sRectangle;
if (!pRectangle)
{
@@ -360,7 +363,6 @@ void ChartWindow::LogicInvalidate(const tools::Rectangle* pRectangle)
sRectangle = aRectangle.toString();
}
- SfxViewShell* pCurrentShell = SfxViewShell::Current();
SfxLokHelper::notifyInvalidation(pCurrentShell, sRectangle);
}