tags 598930 + patch
thanks
Attaching a patch from the Ubuntu package to fix this bug.
Index: smooth-tasks-src-wip-2010-02-27/applet/SmoothTasks/ByShapeTaskbarLayout.cpp
===================================================================
--- smooth-tasks-src-wip-2010-02-27.orig/applet/SmoothTasks/ByShapeTaskbarLayout.cpp 2010-06-24 19:06:15.608854997 +0200
+++ smooth-tasks-src-wip-2010-02-27/applet/SmoothTasks/ByShapeTaskbarLayout.cpp 2010-06-24 19:07:52.504855000 +0200
@@ -78,7 +78,7 @@
m_cellHeight = rect.height();
}
- QSizeF newPreferredSize(qMin(10.0, rect.width()), qMin(10.0, rect.height()));
+ QSizeF newPreferredSize(qMin(qreal(10.0), rect.width()), qMin(qreal(10.0), rect.height()));
if (newPreferredSize != m_preferredSize) {
m_preferredSize = newPreferredSize;
Index: smooth-tasks-src-wip-2010-02-27/applet/SmoothTasks/FixedItemCountTaskbarLayout.cpp
===================================================================
--- smooth-tasks-src-wip-2010-02-27.orig/applet/SmoothTasks/FixedItemCountTaskbarLayout.cpp 2010-06-24 19:08:10.020855000 +0200
+++ smooth-tasks-src-wip-2010-02-27/applet/SmoothTasks/FixedItemCountTaskbarLayout.cpp 2010-06-24 19:08:51.600855002 +0200
@@ -59,7 +59,7 @@
m_cellHeight = rect.height();
}
- QSizeF newPreferredSize(qMin(10.0, rect.width()), qMin(10.0, rect.height()));
+ QSizeF newPreferredSize(qMin(qreal(10.0), rect.width()), qMin(qreal(10.0), rect.height()));
if (newPreferredSize != m_preferredSize) {
m_preferredSize = newPreferredSize;
Index: smooth-tasks-src-wip-2010-02-27/applet/SmoothTasks/FixedSizeTaskbarLayout.cpp
===================================================================
--- smooth-tasks-src-wip-2010-02-27.orig/applet/SmoothTasks/FixedSizeTaskbarLayout.cpp 2010-06-24 19:09:01.872855004 +0200
+++ smooth-tasks-src-wip-2010-02-27/applet/SmoothTasks/FixedSizeTaskbarLayout.cpp 2010-06-24 19:10:49.360855003 +0200
@@ -117,10 +117,10 @@
if (isVertical) {
newPreferredSize.setWidth(top + m_fixedCellHeight + bottom);
- newPreferredSize.setHeight(qMin(10.0, rect.height()));
+ newPreferredSize.setHeight(qMin(qreal(10.0), rect.height()));
}
else {
- newPreferredSize.setWidth(qMin(10.0, rect.width()));
+ newPreferredSize.setWidth(qMin(qreal(10.0), rect.width()));
newPreferredSize.setHeight(top + m_fixedCellHeight + bottom);
}
Index: smooth-tasks-src-wip-2010-02-27/applet/SmoothTasks/LimitSqueezeTaskbarLayout.cpp
===================================================================
--- smooth-tasks-src-wip-2010-02-27.orig/applet/SmoothTasks/LimitSqueezeTaskbarLayout.cpp 2010-06-24 19:11:04.536854997 +0200
+++ smooth-tasks-src-wip-2010-02-27/applet/SmoothTasks/LimitSqueezeTaskbarLayout.cpp 2010-06-24 19:12:15.980855000 +0200
@@ -99,7 +99,7 @@
m_cellHeight = rect.height();
}
- QSizeF newPreferredSize(qMin(10.0, rect.width()), qMin(10.0, rect.height()));
+ QSizeF newPreferredSize(qMin(qreal(10.0), rect.width()), qMin(qreal(10.0), rect.height()));
if (newPreferredSize != m_preferredSize) {
m_preferredSize = newPreferredSize;
@@ -145,7 +145,7 @@
cellWidth = cellHeight * aspectRatio();
thisRowWidth = N * (cellWidth + spacing) +
(expandedItemCount - expandedHoverItemCount) * expandedWidth(); // suppress the expansion by hover
- compression = qMin((rows * availableWidth) / thisRowWidth, 1.0);
+ compression = qMin((rows * availableWidth) / thisRowWidth, qreal(1.0));
if (rows * availableWidth > (thisRowWidth - N * cellWidth) * m_squeezeRatio + N * cellWidth / (rows + 1)) {
break;
Index: smooth-tasks-src-wip-2010-02-27/applet/SmoothTasks/MaxSqueezeTaskbarLayout.cpp
===================================================================
--- smooth-tasks-src-wip-2010-02-27.orig/applet/SmoothTasks/MaxSqueezeTaskbarLayout.cpp 2010-06-24 19:12:25.456855004 +0200
+++ smooth-tasks-src-wip-2010-02-27/applet/SmoothTasks/MaxSqueezeTaskbarLayout.cpp 2010-06-24 19:12:52.088855003 +0200
@@ -67,7 +67,7 @@
m_cellHeight = rect.height();
}
- QSizeF newPreferredSize(qMin(10.0, rect.width()), qMin(10.0, rect.height()));
+ QSizeF newPreferredSize(qMin(qreal(10.0), rect.width()), qMin(qreal(10.0), rect.height()));
if (newPreferredSize != m_preferredSize) {
m_preferredSize = newPreferredSize;