From: Jussi Laitinen Date: Thu, 12 Aug 2010 13:32:28 +0000 (+0300) Subject: Addded textRectFactor min value. X-Git-Tag: v2.0b-1~61^2^2~13^2~9 X-Git-Url: https://vcs.maemo.org/git/?p=situare;a=commitdiff_plain;h=1b01858c7bed9032cedb72c3f63e9832878781aa Addded textRectFactor min value. --- diff --git a/src/ui/extendedlistitem.cpp b/src/ui/extendedlistitem.cpp index 158e746..4709de3 100644 --- a/src/ui/extendedlistitem.cpp +++ b/src/ui/extendedlistitem.cpp @@ -104,7 +104,7 @@ QRect ExtendedListItem::calculateExpandedTextRect(const QString &text) textRectFactor += textRect.height() / SUBITEM_TEXT_ROW_HEIGHT; QRect expandedTextRect = QRect(0, 0, m_subItemTextWidth, SUBITEM_TEXT_ROW_HEIGHT - * textRectFactor); + * qMax(textRectFactor, 1)); m_normalHeight += SUBITEM_TEXT_ROW_HEIGHT + TEXT_BOTTOM_MARGIN; m_expandedHeight += expandedTextRect.height() + TEXT_BOTTOM_MARGIN;