mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-18 18:38:51 +00:00
Fix the padding in SimpleTextGraphView (#3046)
This commit is contained in:
parent
3224daa0ee
commit
1ac814c1b9
@ -119,8 +119,8 @@ void SimpleTextGraphView::drawBlock(QPainter &p, GraphView::GraphBlock &block, b
|
||||
|
||||
p.setPen(palette().color(QPalette::WindowText));
|
||||
// Render node text
|
||||
auto x = block.x + padding;
|
||||
int y = block.y + padding + p.fontMetrics().ascent();
|
||||
auto x = block.x + padding / 2;
|
||||
int y = block.y + padding / 2 + p.fontMetrics().ascent();
|
||||
p.drawText(QPoint(x, y), content.text);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user