mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-31 08:37:26 +00:00
%p is only meant for pointers, use %x for hex (#34)
and fix initialization order while at it
This commit is contained in:
parent
bafad96bf3
commit
2ba3d923a2
@ -18,8 +18,8 @@ public slots:
|
||||
void fillData();
|
||||
|
||||
private:
|
||||
MainWindow *main;
|
||||
QGraphicsView *codeGraphic;
|
||||
MainWindow *main;
|
||||
};
|
||||
|
||||
#endif // GRAPHICSBAR_H
|
||||
|
@ -157,7 +157,7 @@ void DisassemblerGraphView::copy_address()
|
||||
QClipboard* clipboard = QApplication::clipboard();
|
||||
clipboard->clear();
|
||||
QMimeData mime;
|
||||
mime.setText(QString().sprintf("0x%p", this->get_cursor_pos()));
|
||||
mime.setText(QString().sprintf("0x%llx", this->get_cursor_pos()));
|
||||
clipboard->setMimeData(&mime);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user