summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-06-03 14:35:38 +0200
committerJan Holesovsky <kendy@suse.cz>2011-06-03 19:52:33 +0200
commit349cdd39cb23c99ecc4a299729dbc8ab0ac89bd8 (patch)
treeb4639ee2880cc4d11ed3a148b361f4aa5d3fef8a
parent3860483d8cb9e259ca3f68347ba0e35f7bfb1739 (diff)
Fix one of the crashes in wizards - fdo#36306
This fixes the following problem: - open "File/Wizards/Letter" - select "Formal Personal letter" radio button - press "Finish" button Signed-off-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/source/core/graphic/ndgrf.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/graphic/ndgrf.cxx b/sw/source/core/graphic/ndgrf.cxx
index 6bcbec28d5..0a11a93b01 100644
--- a/sw/source/core/graphic/ndgrf.cxx
+++ b/sw/source/core/graphic/ndgrf.cxx
@@ -806,8 +806,7 @@ SvStream* SwGrfNode::_GetStreamForEmbedGrf(
{
xub_StrLen nExtPos = _aStrmName.Search( '.' );
String aExtStr = _aStrmName.Copy( nExtPos );
- Graphic aGraphic( GetGrfObj().GetGraphic() );
- if ( aGraphic.GetType() != GRAPHIC_NONE )
+ if ( GetGrfObj().GetType() != GRAPHIC_NONE )
{
_aStrmName = String( GetGrfObj().GetUniqueID(), RTL_TEXTENCODING_ASCII_US );
_aStrmName += aExtStr;