summaryrefslogtreecommitdiff
path: root/ui/qt/overlay_scroll_bar.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-08-04 10:00:23 -0700
committerGerald Combs <gerald@wireshark.org>2015-08-04 17:01:13 +0000
commitd51d83bea5aa5ee1e84c6d54227de88919f02f19 (patch)
tree6c230f7602deb0a78ecb95206b2717bbd262fc7a /ui/qt/overlay_scroll_bar.cpp
parent03802cc53eefdc152f9c2160ebebf9717e5f07b2 (diff)
downloadwireshark-d51d83bea5aa5ee1e84c6d54227de88919f02f19.tar.gz
Fix the selected packet indicator width.
Change-Id: Ic792c232524b4124bb4607cbe1979cdce8fd7e23 Reviewed-on: https://code.wireshark.org/review/9866 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/overlay_scroll_bar.cpp')
-rw-r--r--ui/qt/overlay_scroll_bar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/overlay_scroll_bar.cpp b/ui/qt/overlay_scroll_bar.cpp
index 1483baf515..f31c97fd5e 100644
--- a/ui/qt/overlay_scroll_bar.cpp
+++ b/ui/qt/overlay_scroll_bar.cpp
@@ -99,7 +99,7 @@ void OverlayScrollBar::paintEvent(QPaintEvent *event)
int no_pos = near_dest.height() * selected_pos_ / near_overlay_.height();
go_painter.save();
go_painter.setBrush(palette().highlight().color());
- go_painter.drawRect(0, no_pos, near_dest.width(), dp_ratio);
+ go_painter.drawRect(0, no_pos, gr_size.width(), dp_ratio);
go_painter.restore();
}