This commit is contained in:
xarkes 2018-01-31 11:06:45 +01:00
parent 6b644d6ed6
commit dc3fe4f3c4

View File

@ -170,7 +170,7 @@ void DisassemblerGraphView::loadCurrentGraph()
RichTextPainter::List richText;
QString disas;
if (Core()->getConfigb("asm.emu"))
if (Core()->getConfigb("asm.esil"))
disas = op["esil"].toString();
else
disas = op["disasm"].toString();
@ -209,13 +209,9 @@ void DisassemblerGraphView::loadCurrentGraph()
int blockLength = Config()->getGraphBlockMaxChars() + Core()->getConfigb("asm.bytes") * 24 + Core()->getConfigb("asm.emu") * 10;
i.text = Text(RichTextPainter::cropped(richText, blockLength, "...", &cropped));
if(cropped)
{
i.fullText = richText;
}
else
{
i.fullText = Text();
}
db.instrs.push_back(i);
}
disassembly_blocks[db.entry] = db;