There is a (very old) bug in QTextParagraph class which has been fired up in 3.3.3.
You can patch the widget (very simply) using the patch available at:
[URL=http://www.lab-project.net/component/option,com_docman/Itemid,25/task,view_category/catid,8]http://www.lab-project.net[/URL]
or
freebsd.ports.bugs
The bug itself lies in the paint method in:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- src/kernel/qrichtext.cpp.orig Thu Aug 19 20:27:12 2004
+++ src/kernel/qrichtext.cpp Thu Aug 19 20:28:05 2004
@@ -61,6 +61,7 @@
#include "qcleanuphandler.h"
#include "qtextengine_p.h"
#include <private/qunicodetables_p.h>
+#include <qdeepcopy.h>
#include <stdlib.h>
@@ -4509,7 +4510,7 @@ void QTextParagraph::paint( QPainter &pa
if ( drawSelections && fullWidthStyle )
fullSelectionWidth = (hasdoc ? document()->width() : r.width());
- QString qstr = str->toString();
+ QString qstr = QDeepCopy<QString>(str->toString());
// ### workaround so that \n are not drawn, actually this should
// be fixed in QFont somewhere (under Windows you get ugly boxes
// otherwise)
|