summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/unoobj/docuno.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index c8126824a173..fc9903bb2e3c 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -502,7 +502,13 @@ void ScModelObj::paintTile( VirtualDevice& rDevice,
{
// There seems to be no clear way of getting the grid window for this
// particular document, hence we need to hope we get the right window.
+ // FIXME: "hope"? Are you kidding me?
ScViewData* pViewData = ScDocShell::GetViewData();
+
+ // FIXME
+ if (!pViewData)
+ return;
+
ScGridWindow* pGridWindow = pViewData->GetActiveWin();
// update the size of the area we are painting