diff options
| author | Karol Kosek <krkk@krkk.ct8.pl> | 2021-04-11 20:03:18 +0200 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2021-04-11 21:18:27 +0200 |
| commit | 9c883b55d489500177709d563cd94d77327f78b9 (patch) | |
| tree | c584b3399d70c79f4f36a721824d20582c5931fb /src/browsertab.cpp | |
| parent | c740189bcaa5bc6c073f8b3802303acf5ac36e47 (diff) | |
| download | kristall-9c883b55d489500177709d563cd94d77327f78b9.tar.gz | |
BrowserTab: reset image scaling for small images
When you viewed a small image after the bigger one in the same tab, then
the graphics_browser was still trying to scale them to the window size.
Diffstat (limited to 'src/browsertab.cpp')
| -rw-r--r-- | src/browsertab.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/browsertab.cpp b/src/browsertab.cpp index f995bc9..32927fc 100644 --- a/src/browsertab.cpp +++ b/src/browsertab.cpp @@ -736,6 +736,8 @@ void BrowserTab::renderPage(const QByteArray &data, const MimeType &mime) if (imageSize.width() > browserSize.width() || imageSize.height() > browserSize.height()) this->ui->graphics_browser->fitInView(graphics_scene.sceneRect(), Qt::KeepAspectRatio); + else + this->ui->graphics_browser->resetTransform(); this->ui->graphics_browser->setSceneRect(graphics_scene.sceneRect()); }); |
