Kaydet (Commit) a2aceeb0 authored tarafından Caolán McNamara's avatar Caolán McNamara

return earlier, no logic change intended

Change-Id: Icd75c46eb57c059fb60fd9701e6bb1fb651d8f3f
üst b560dc89
...@@ -1520,10 +1520,15 @@ void ReadImpGraphic( SvStream& rIStm, ImpGraphic& rImpGraphic ) ...@@ -1520,10 +1520,15 @@ void ReadImpGraphic( SvStream& rIStm, ImpGraphic& rImpGraphic )
void WriteImpGraphic(SvStream& rOStm, const ImpGraphic& rImpGraphic) void WriteImpGraphic(SvStream& rOStm, const ImpGraphic& rImpGraphic)
{ {
if( !rOStm.GetError() ) if (rOStm.GetError())
{ return;
if( !rImpGraphic.ImplIsSwapOut() )
if (rImpGraphic.ImplIsSwapOut())
{ {
rOStm.SetError( SVSTREAM_GENERALERROR );
return;
}
if( ( rOStm.GetVersion() >= SOFFICE_FILEFORMAT_50 ) && if( ( rOStm.GetVersion() >= SOFFICE_FILEFORMAT_50 ) &&
( rOStm.GetCompressMode() & SvStreamCompressFlags::NATIVE ) && ( rOStm.GetCompressMode() & SvStreamCompressFlags::NATIVE ) &&
rImpGraphic.mpGfxLink && rImpGraphic.mpGfxLink->IsNative() && rImpGraphic.mpGfxLink && rImpGraphic.mpGfxLink->IsNative() &&
...@@ -1597,10 +1602,6 @@ void WriteImpGraphic(SvStream& rOStm, const ImpGraphic& rImpGraphic) ...@@ -1597,10 +1602,6 @@ void WriteImpGraphic(SvStream& rOStm, const ImpGraphic& rImpGraphic)
rOStm.SetEndian( nOldFormat ); rOStm.SetEndian( nOldFormat );
} }
}
else
rOStm.SetError( SVSTREAM_GENERALERROR );
}
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment