From 14665cbe8a71f5f6fc84c9cd7152bac53acf4da3 Mon Sep 17 00:00:00 2001 From: Itay Cohen Date: Sat, 25 May 2019 10:02:20 +0300 Subject: [PATCH] make the shadow selection wider in hex (#1584) --- src/widgets/HexWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/HexWidget.cpp b/src/widgets/HexWidget.cpp index bed05c6e..dcaaf418 100644 --- a/src/widgets/HexWidget.cpp +++ b/src/widgets/HexWidget.cpp @@ -680,6 +680,7 @@ void HexWidget::drawCursor(QPainter &painter, bool shadow) QPen pen(Qt::gray); pen.setStyle(Qt::DashLine); painter.setPen(pen); + shadowCursor.screenPos.setWidth(cursorOnAscii ? itemWidth() : charWidth); painter.drawRect(shadowCursor.screenPos); painter.setPen(Qt::SolidLine); } @@ -863,7 +864,6 @@ void HexWidget::updateMetrics() shadowCursor.screenPos.moveTopLeft(itemArea.topLeft()); } else { cursor.screenPos.moveTopLeft(itemArea.topLeft()); - shadowCursor.screenPos.setWidth(charWidth); shadowCursor.screenPos.moveTopLeft(asciiArea.topLeft()); }