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

ImplClear sets mbSwapOut false, so mbSwapOut is actually always false here

i.e. failure to swap in does not mean that mbSwapOut is true afterwards, and
mpSwapFile is discarded. It means the whole thing is thrown away.

Change-Id: I73704866d77078c73d053047a7d2ef6499a3e69d
üst 4d092cba
...@@ -1267,10 +1267,12 @@ bool ImpGraphic::ImplSwapIn( SvStream* xIStm ) ...@@ -1267,10 +1267,12 @@ bool ImpGraphic::ImplSwapIn( SvStream* xIStm )
bRet = ImplReadEmbedded( *xIStm ); bRet = ImplReadEmbedded( *xIStm );
mbSwapUnderway = false; mbSwapUnderway = false;
if( !bRet ) if (!bRet)
{
//throw away swapfile, etc.
ImplClear(); ImplClear();
else }
mbSwapOut = false; mbSwapOut = false;
} }
} }
......
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