From ade9bb54509ea7c1ed4fc0327ee1a62f22750078 Mon Sep 17 00:00:00 2001
From: Gabriel Studer <gabriel.studer@stud.unibas.ch>
Date: Fri, 10 May 2013 14:42:09 +0200
Subject: [PATCH] Position of wrong structure got updated

---
 modules/gui/pymod/dng/menu.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/pymod/dng/menu.py b/modules/gui/pymod/dng/menu.py
index 59e3e15f1..976068626 100644
--- a/modules/gui/pymod/dng/menu.py
+++ b/modules/gui/pymod/dng/menu.py
@@ -192,10 +192,10 @@ class SceneMenu(QMenu):
     sd = superpositiondialog.SuperpositionDialog(gfx_ent_1, gfx_ent_2)
     if sd.rmsd != None:
       if sd.reference == 0:
-        gfx_ent_1.UpdatePositions()
+        gfx_ent_2.UpdatePositions()
         gfx.Scene().CenterOn(gfx_ent_1)
       else:
-        gfx_ent_2.UpdatePositions()
+        gfx_ent_1.UpdatePositions()
         gfx.Scene().CenterOn(gfx_ent_2)
       LogScript('RMSD: %.3f'%sd.rmsd)
 
-- 
GitLab