diff options
author | Christian Lippka <christian.lippka@sun.com> | 2010-05-31 13:10:15 +0200 |
---|---|---|
committer | Christian Lippka <christian.lippka@sun.com> | 2010-05-31 13:10:15 +0200 |
commit | f425cc4944368dbd9449cdcc164035ba8707e46c (patch) | |
tree | bf944a52560aa093f5760a85a19102aa4df93c84 /svx/source/svdraw/svdoutl.cxx | |
parent | 0713976e5581b5269aa9d766c1b9cc6c27342f58 (diff) |
#i111928# do not crash when there are fields in an annotation
Diffstat (limited to 'svx/source/svdraw/svdoutl.cxx')
-rw-r--r-- | svx/source/svdraw/svdoutl.cxx | 5 |
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; } |