[Digikam-devel] [digikam] [Bug 257933] DigiKam zoom slider resets to minimum when returning from image preview

nurupobugskde at gmail.com nurupobugskde at gmail.com
Thu May 2 16:25:01 BST 2013


https://bugs.kde.org/show_bug.cgi?id=257933

nurupobugskde at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nurupobugskde at gmail.com

--- Comment #5 from nurupobugskde at gmail.com ---
It's still somewhat present in 3.x.

If you set the zoom slider to n in Thumbnail [zoom_slider_bug_01.png], then
switch to Preview Image and back to Thumbnail, the zoom slider may show values
of n+2 [zoom_slider_bug_02.png].

This happens because when switching back to Thumbnail, the slider gets reset
with value of size of thumbnails, which will return size+2 if thumbnails have a
highlight border
[`ThumbnailLoadThread::ThumbnailLoadThreadPriv::pixmapSizeForThumbnailSize(...)`].

Note that this bug not only increases zoom slider's value to +2, but also
resizes thumbnails to +2.

The following patch fixes that.
It checks is thumbnail has a border, and if it does, it returns
sizeWithBorders-2, which then used in calling
`DigikamApp::slotThumbSizeChanged(int size)`.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Digikam-devel mailing list