Skip to content

Commit

Permalink
[processing] replace greater than and lower than characters in log
Browse files Browse the repository at this point in the history
fixes #15748
  • Loading branch information
volaya committed Oct 28, 2016
1 parent 05e70b2 commit 3c8c509
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions python/plugins/processing/gui/AlgorithmDialogBase.py
Expand Up @@ -64,9 +64,9 @@ def __init__(self, alg):

self.setWindowTitle(self.alg.displayName())

#~ desktop = QDesktopWidget()
#~ if desktop.physicalDpiX() > 96:
#~ self.txtHelp.setZoomFactor(desktop.physicalDpiX() / 96)
# ~ desktop = QDesktopWidget()
# ~ if desktop.physicalDpiX() > 96:
# ~ self.txtHelp.setZoomFactor(desktop.physicalDpiX() / 96)

algHelp = self.alg.shortHelp()
if algHelp is None:
Expand Down Expand Up @@ -139,6 +139,7 @@ def resetGUI(self):
self.btnClose.setEnabled(True)

def setInfo(self, msg, error=False):
msg = msg.replace("<", "&lt;").replace(">", "&gt;")
if error:
self.txtLog.append('<span style="color:red"><br>%s<br></span>' % msg)
else:
Expand Down

0 comments on commit 3c8c509

Please sign in to comment.