[PATCH] Fix one of the crashes in wizards - fdo#36306
Jan Holesovsky
kendy at suse.cz
Fri Jun 3 05:35:38 PDT 2011
This fixes the following problem:
- open "File/Wizards/Letter"
- select "Formal Personal letter" radio button
- press "Finish" button
---
sw/source/core/graphic/ndgrf.cxx | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/sw/source/core/graphic/ndgrf.cxx b/sw/source/core/graphic/ndgrf.cxx
index 6bcbec2..0a11a93 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;
--
1.7.4.1
--=-QxFKm1c3VlRMDGjy/CmJ--
More information about the LibreOffice
mailing list