r19462 by jghali - 12572, patch 10/12: fix missing words from error message in messagebox

scribus-commit scribus-commit at lists.scribus.net
Sat Aug 30 01:03:12 UTC 2014


Author: jghali
Date: Sat Aug 30 01:03:12 2014
New Revision: 19462

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19462
Log:
12572, patch 10/12: fix missing words from error message in messagebox

Some words in the error message are enclosed in <> and are incorrectly
interpreted as markup for rich text. They need to be escaped to show
correctly.

Modified:
    trunk/Scribus/scribus/plugins/scriptplugin/scriptercore.cpp

Modified: trunk/Scribus/scribus/plugins/scriptplugin/scriptercore.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19462&path=/trunk/Scribus/scribus/plugins/scriptplugin/scriptercore.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/scriptercore.cpp (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/scriptercore.cpp Sat Aug 30 01:03:12 2014
@@ -333,7 +333,7 @@
 									tr("Script error"),
 									"<qt><p>"
 									+ tr("If you are running an official script report it at <a href=\"http://bugs.scribus.net\">bugs.scribus.net</a> please.")
-									+ "</p><pre>" +errorMsg + "</pre><p>"
+									+ "</p><pre>" + errorMsg.toHtmlEscaped() + "</pre><p>"
 									+ tr("This message is in your clipboard too. Use Ctrl+V to paste it into bug tracker.")
 									+ "</p></qt>");
 			}




More information about the scribus-commit mailing list