From c1f9c3a8af513419190976d1a8d7b0abbe251a28 Mon Sep 17 00:00:00 2001 From: Marc Deop Date: Sun, 15 Jan 2012 11:04:18 +0100 Subject: only make labels for viewable elements REVIEW:103697 REVIEWED-BY: adjam --- src/webview.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/webview.cpp b/src/webview.cpp index da7f802a..ac861fb0 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -1008,7 +1008,8 @@ void WebView::showAccessKeys() const QRect geometry = element.geometry(); if (unusedKeys.isEmpty() || alreadyLabeled.contains(element) - || geometry.size().isEmpty()) + || geometry.size().isEmpty() + || !viewport.contains(geometry.topLeft())) { continue; } -- cgit v1.2.1