[Digikam-devel] [Bug 121905] albums not displayed corectly and digikam crashes with St9bad_alloc

Gilles Caulier caulier.gilles at free.fr
Sun Mar 26 08:27:39 BST 2006


------- 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=121905         




------- Additional Comments From caulier.gilles free fr  2006-03-26 09:27 -------
SVN commit 522589 by cgilles:

Digikam from stable : Fix wrong cast into kioslave. This bug crash digikam during album item thumbs rendering or stop it to the first item of each album

Nota : these patch have been already applied to trunk branch (0.9.0-svn)

CCMAIL: digikam-devel kde org
CCBUGS: 121905


 M  +1 -1      digikamalbums.cpp  
 M  +1 -1      digikamdates.cpp  
 M  +1 -1      digikamsearch.cpp  
 M  +1 -1      digikamtags.cpp  


--- branches/stable/extragear/graphics/digikam/kioslave/digikamalbums.cpp #522588:522589
 @ -206,7 +206,7  @
         os << albumid;
         os << name;
         os << date;
-        os << stbuf.st_size;
+        os << static_cast<size_t>(stbuf.st_size);
         os << dims;
     }
 
--- branches/stable/extragear/graphics/digikam/kioslave/digikamdates.cpp #522588:522589
 @ -248,7 +248,7  @
                 *os << dirid;
                 *os << name;
                 *os << date;
-                *os << stbuf.st_size;
+                *os << static_cast<size_t>(stbuf.st_size);
                 *os << dims;
 
                 count++;
--- branches/stable/extragear/graphics/digikam/kioslave/digikamsearch.cpp #522588:522589
 @ -214,7 +214,7  @
             *os << dirid;
             *os << name;
             *os << date;
-            *os << stbuf.st_size;
+            *os << static_cast<size_t>(stbuf.st_size);
             *os << dims;
 
             count++;
--- branches/stable/extragear/graphics/digikam/kioslave/digikamtags.cpp #522588:522589
 @ -193,7 +193,7  @
         *os << dirid;
         *os << name;
         *os << date;
-        *os << stbuf.st_size;
+        *os << static_cast<size_t>(stbuf.st_size);
         *os << dims;
 
         count++;



More information about the Digikam-devel mailing list