SVN commit 495885 by cgilles:
digikam from trunk : thumbar widget bugfix : wrong thumbar items size computation in Horizontal mode !!! Damned : I'm trying to fix it since 3 days... Give me aspirin (:=)))
CCMAIL:
[hidden email]
M +3 -2 thumbbar.cpp
--- trunk/extragear/graphics/digikam/libs/thumbbar/thumbbar.cpp #495884:495885
@@ -280,7 +280,7 @@
bgPix.resize(er.width(), contentsRect().height());
ts = d->tileSize + 2*d->margin;
- tile.resize(visibleHeight(), ts);
+ tile.resize(ts, visibleHeight());
x1 = (cx/ts)*ts;
x2 = ((x1 + er.width())/ts +1)*ts;
@@ -480,6 +480,7 @@
int pos = 0;
ThumbBarItem *item = d->firstItem;
+
while (item)
{
item->m_pos = pos;
@@ -595,7 +596,7 @@
// -------------------------------------------------------------------------
ThumbBarItem::ThumbBarItem(ThumbBarView* view, const KURL& url)
- : m_view(view), m_url(url), m_next(0), m_prev(0), m_pixmap(0)
+ : m_view(view), m_url(url), m_next(0), m_prev(0), m_pos(0), m_pixmap(0)
{
m_view->insertItem(this);
}
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel