diff options
Diffstat (limited to 'src/tabpreviewpopup.cpp')
-rw-r--r-- | src/tabpreviewpopup.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tabpreviewpopup.cpp b/src/tabpreviewpopup.cpp index 63ff542d..0490e602 100644 --- a/src/tabpreviewpopup.cpp +++ b/src/tabpreviewpopup.cpp @@ -99,7 +99,7 @@ TabPreviewPopup::~TabPreviewPopup() void TabPreviewPopup::setWebTab(WebTab* tab) { int w = (tab->parentWidget()->sizeHint().width() / TabBar::baseWidthDivisor); - int h = w * rApp->mainWindow()->size().height() / rApp->mainWindow()->size().width(); + int h = w * tab->size().height() / tab->size().width(); const QPixmap preview = tab->tabPreview(w, h); if (!preview.isNull()) |