summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-06-26 15:20:14 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-06-26 16:03:51 +0200
commit4cd3f9a7749b8ef285012a59d031dc9f2e4b5e43 (patch)
tree2da4c063fba1a1f3d210a987b259f5f8f928c53b /sw
parenta3413204d2eb0563a4a2e1104905951f81e417bc (diff)
fix crash on exporting kde140265-1.doc to ODT
properties.pSGlobalShell can be legitimately 0 here. No testcase, for some reason the export does not crash if it's done by CppunitTest_sw_filters_test or CppunitTest_sw_odfexport; but it does crash with '--headless --convert-to odt kde140265-1.doc'. Change-Id: I50936f9e5236763cc987aba14d8fc897c4b789bf
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/paintfrm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index 017389b5decb..67e6e1595d08 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -1510,7 +1510,7 @@ static void lcl_CalcBorderRect( SwRect &rRect, const SwFrm *pFrm,
}
}
- ::SwAlignRect( rRect, properties.pSGlobalShell, properties.pSGlobalShell->GetOut() );
+ ::SwAlignRect( rRect, properties.pSGlobalShell, properties.pSGlobalShell ? properties.pSGlobalShell->GetOut() : 0 );
}
/**