From 413001ac3a67cb44651f362c5fc6041658eef859 Mon Sep 17 00:00:00 2001 From: ismail Date: Sat, 25 Mar 2023 21:53:20 +0530 Subject: [PATCH] graph_widget_address_view_fix --- src/widgets/DisassemblerGraphView.cpp | 6 ------ src/widgets/DisassemblerGraphView.h | 1 - 2 files changed, 7 deletions(-) diff --git a/src/widgets/DisassemblerGraphView.cpp b/src/widgets/DisassemblerGraphView.cpp index 69f87e5b04..7dac8f1160 100644 --- a/src/widgets/DisassemblerGraphView.cpp +++ b/src/widgets/DisassemblerGraphView.cpp @@ -345,7 +345,6 @@ void DisassemblerGraphView::prepareGraphNode(GraphBlock &block) lw += mFontMetrics->width(part.text); if (lw > width) width = lw; - height += 1; } for (Instr &instr : db.instrs) { for (auto &line : instr.text.lines) { @@ -469,11 +468,6 @@ void DisassemblerGraphView::drawBlock(QPainter &p, GraphView::GraphBlock &block, // Render node text auto x = block.x + padding; int y = block.y + getTextOffset(0).y(); - for (auto &line : db.header_text.lines) { - RichTextPainter::paintRichText(&p, x, y, block.width, charHeight, 0, line, - mFontMetrics.get()); - y += charHeight; - } auto bih = Core()->getBIHighlighter(); for (const Instr &instr : db.instrs) { diff --git a/src/widgets/DisassemblerGraphView.h b/src/widgets/DisassemblerGraphView.h index c5f10bb166..80bc37bc68 100644 --- a/src/widgets/DisassemblerGraphView.h +++ b/src/widgets/DisassemblerGraphView.h @@ -108,7 +108,6 @@ class DisassemblerGraphView : public CutterGraphView void loadCurrentGraph(); QString windowTitle; - int getWidth() { return width; } int getHeight() { return height; } std::unordered_map getBlocks() { return blocks; }