Qt debugger: fix error in determining where clicks are in memory views [Golden Child]

This commit is contained in:
R. Belmont 2019-02-27 17:26:56 -05:00 committed by GitHub
parent bc70f289b8
commit debe2f560b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -329,7 +329,7 @@ void DebuggerMemView::mousePressEvent(QMouseEvent* event)
{
QFontMetrics actualFont = fontMetrics();
const double fontWidth = actualFont.width(QString(100, '_')) / 100.;
const int fontHeight = std::max(1, actualFont.height());
const int fontHeight = std::max(1, actualFont.lineSpacing());
debug_view_xy topLeft = view()->visible_position();
debug_view_xy clickViewPosition;