From 8c201a2f04afab61c34985b7fd61c469a2aadb39 Mon Sep 17 00:00:00 2001 From: Stefan Bienert <stefan.bienert@unibas.ch> Date: Tue, 21 Jun 2011 12:06:32 +0200 Subject: [PATCH] Fixed smallish bug in SuperpositionDialog and again the example of the documentation --- modules/gui/pymod/dng/superpositiondialog.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/gui/pymod/dng/superpositiondialog.py b/modules/gui/pymod/dng/superpositiondialog.py index 12a405994..2112ce2cd 100644 --- a/modules/gui/pymod/dng/superpositiondialog.py +++ b/modules/gui/pymod/dng/superpositiondialog.py @@ -40,6 +40,8 @@ class ChainComboBox(QComboBox): QObject.connect(self, SIGNAL('highlighted (const QString&)'), self._HighlightChain) + else: + self.gfx = None def focusOutEvent (self, event): if self.gfx: @@ -113,7 +115,8 @@ class SuperpositionDialog(QDialog): else: scene.CenterOn(g2) - LogScript('RMSD: %.3f'%sd.rmsd) + if sd.rmsd != None: + LogScript('RMSD: %.3f'%sd.rmsd) """ def __init__(self, ent_one, ent_two, parent=None): -- GitLab