summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdoutl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/svdraw/svdoutl.cxx')
-rw-r--r--svx/source/svdraw/svdoutl.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdoutl.cxx b/svx/source/svdraw/svdoutl.cxx
index e4b27766a265..79e74a3382b8 100644
--- a/svx/source/svdraw/svdoutl.cxx
+++ b/svx/source/svdraw/svdoutl.cxx
@@ -125,5 +125,8 @@ XubString SdrOutliner::CalcFieldValue(const SvxFieldItem& rField, USHORT nPara,
const SdrTextObj* SdrOutliner::GetTextObj() const
{
- return static_cast< SdrTextObj* >( mpTextObj.get() );
+ if( mpTextObj.is() )
+ return static_cast< SdrTextObj* >( mpTextObj.get() );
+ else
+ return 0;
}