fix qMax calls on platforms where qreal is not double

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=821243
This commit is contained in:
Marijn Kruisselbrink 2008-06-16 22:20:49 +00:00
parent 659844e273
commit b10a0bcbe3

View File

@ -599,8 +599,8 @@ void Applet::setBackgroundHints(const BackgroundHints hints)
d->background->getMargins(left, top, right, bottom);
//Setting a minimum size of 0,0 would result in the panel to be only
//on the first virtual desktop
setMinimumSize(qMax(minimumSize().width() - left - right, 1.0),
qMax(minimumSize().height() - top - bottom, 1.0));
setMinimumSize(qMax(minimumSize().width() - left - right, qreal(1.0)),
qMax(minimumSize().height() - top - bottom, qreal(1.0)));
delete d->background;
d->background = 0;