Index: mythuitype.cpp
===================================================================
--- mythuitype.cpp	(revision 18425)
+++ mythuitype.cpp	(working copy)
@@ -462,9 +462,19 @@
     while (margin > 0)
     {
         if (multiline)
+        {
+/*Temporory fix for bug in QT*/
+            QString tmpStr = data.left(index + margin);                                             
             diff = maxheight - fm.boundingRect(0, 0, maxwidth, maxheight,
+                                               justification, tmpStr,
+                                               index + margin, 0).height();
+/*FIXME bug in QFontMetrics::boundingRect which does not take len in account
+  at least with QT 4.3.2
+            diff = maxheight - fm.boundingRect(0, 0, maxwidth, maxheight,
                                                justification, data,
-                                               index + margin, 0).height();
+                                               index + margin, 0).height();*/                                          
+            
+        }
         else
             diff = maxwidth - fm.width(data, index + margin);
         if (diff >= 0)
