Bug 552352 - Using SWAP in Compare editor loses changes and dirty status - Back-port fix to 4.7+ branch Change-Id: Ib8566a295544ed6609326fe1474bb488f8e865d1