[Libreoffice-commits] core.git: chart2/source
Jan-Marek Glogowski
glogow at fbihome.de
Thu Aug 3 15:32:49 UTC 2017
chart2/source/controller/main/ChartWindow.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 3d8846a51acc509118a0af6ac16539c19109ff8d
Author: Jan-Marek Glogowski <glogow at fbihome.de>
Date: Thu Aug 3 15:31:02 2017 +0200
Fix JunitTest chart2 unoapi
Change-Id: I41b8df11778570888cd6943d25d72ca33661c305
Reviewed-on: https://gerrit.libreoffice.org/40723
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Jan-Marek Glogowski <glogow at fbihome.de>
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);
}
More information about the Libreoffice-commits
mailing list