Fix problem introduced in 9c5f835b031e : Exception in LDPowerRailDialog.py because of change in OnPaint/RefreshView/DrawPreview.
authorEdouard Tisserant
Thu, 28 Mar 2019 14:06:53 +0100
changeset 2572 9622418ac28c
parent 2571 d968d586ad16
child 2573 071d10c7ab8f
child 2576 c08bbfe7bbd4
Fix problem introduced in 9c5f835b031e : Exception in LDPowerRailDialog.py because of change in OnPaint/RefreshView/DrawPreview.
dialogs/LDPowerRailDialog.py
--- a/dialogs/LDPowerRailDialog.py	Thu Mar 28 13:39:58 2019 +0100
+++ b/dialogs/LDPowerRailDialog.py	Thu Mar 28 14:06:53 2019 +0100
@@ -155,7 +155,7 @@
         self.RefreshPreview()
         event.Skip()
 
-    def RefreshPreview(self):
+    def DrawPreview(self):
         """
         Refresh preview panel of graphic element
         Override BlockPreviewDialog function
@@ -166,5 +166,4 @@
                                     self.GetPowerRailType(),
                                     connectors=self.PinNumber.GetValue())
 
-        # Call BlockPreviewDialog function
-        BlockPreviewDialog.RefreshPreview(self)
+        return BlockPreviewDialog.DrawPreview(self)