Fix problem introduced in 9c5f835b031e : Exception in LDPowerRailDialog.py because of change in OnPaint/RefreshView/DrawPreview.
--- 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)