X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fgui%2Fwidgets%2FBasicBlockWidget.cxx;h=efa7ec34394ec6d2416933c99d452d1b054032fa;hp=bdddd520f429c925fb4a446a3209867e2a13e1de;hb=3a4fade0292b9b8776c6195467b70a8f25a3b1c7;hpb=9fd091260777a95432902173a35e15a475f6f9f9 diff --git a/src/gui/widgets/BasicBlockWidget.cxx b/src/gui/widgets/BasicBlockWidget.cxx index bdddd52..efa7ec3 100644 --- a/src/gui/widgets/BasicBlockWidget.cxx +++ b/src/gui/widgets/BasicBlockWidget.cxx @@ -30,7 +30,7 @@ void CustomQGraphicsTextItem::addComment(int row, bool global) { if (global) { comment = parent->block->getManager()->newGlobalComment(address); } else { - comment = parent->block->getManager()->newLocalComment(address, NULL); + comment = parent->block->getManager()->newLocalComment(address, (Function*)0x23); } comment->setText(dialog.result().toStdString()); parent->block->getManager()->finishComment(comment); @@ -195,7 +195,7 @@ QString BasicBlockWidget::formatComments(Instruction* inst) { QString comments; for (Comment* c: inst->comments()) { comments += "
"; - comments += c->getText().c_str(); + comments += QString(c->getText().c_str()).toHtmlEscaped(); } return (comments == "" ? "" : ";; ") + comments.trimmed(); }