[Digikam-devel] [Bug 141924] tags preview not updated in last image of album

Marcel Wiesweg marcel.wiesweg at gmx.de
Tue Feb 20 20:52:17 GMT 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=141924         
marcel.wiesweg gmx de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From marcel.wiesweg gmx de  2007-02-20 21:52 -------
SVN commit 635761 by mwiesweg:

Also update the last visible item in AlbumIconView
(Daniel, thanks for your very precise bug report)

BUG: 141924


 M  +3 -1      albumiconview.cpp  


--- trunk/extragear/graphics/digikam/digikam/albumiconview.cpp #635760:635761
 @ -1953,7 +1953,7  @
 {
     AlbumIconItem *firstItem = static_cast<AlbumIconItem *>(findFirstVisibleItem());
     AlbumIconItem *lastItem = static_cast<AlbumIconItem *>(findLastVisibleItem());
-    for (AlbumIconItem *item = firstItem; item && item != lastItem;
+    for (AlbumIconItem *item = firstItem; item;
          item = static_cast<AlbumIconItem *>(item->nextItem()))
     {
         if (item->imageInfo()->id() == imageId)
 @ -1961,6 +1961,8  @
             updateContents();
             return;
         }
+        if (item == lastItem)
+            break;
     }
 }



More information about the Digikam-devel mailing list