CR characters in elements and TBT extra information field are now stripped.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1641 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2012-04-09 01:03:11 +00:00
parent 318df55a37
commit f1dd11b903
2 changed files with 2 additions and 2 deletions

View File

@@ -875,7 +875,7 @@ void QETTitleBlockTemplateEditor::editTemplateInformation() {
// run the dialog
if (dialog_author.exec() == QDialog::Accepted && !read_only_) {
QString new_info = text_field -> toPlainText();
QString new_info = text_field -> toPlainText().remove(QChar(13)); // CR-less text
if (new_info != tb_template_ -> information()) {
pushUndoCommand(new ChangeTemplateInformationsCommand(tb_template_, tb_template_ -> information(), new_info));
}