[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kchart/kdchart
From: Laurent Montel <montel () kde ! org>
Date: 2006-03-29 14:31:16
Message-ID: 1143642676.709354.22939.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 523937 by mlaurent:
Fix some error
M +2 -2 KDDrawText.cpp
--- trunk/koffice/kchart/kdchart/KDDrawText.cpp #523936:523937
@@ -165,7 +165,7 @@
pFM = const_cast<QFontMetrics*>(fontMet);
}
- int nLF = text.contains('\n');
+ int nLF = text.count('\n');
if( INT_MAX == txtWidth ) {
if( nLF ){
int tw;
@@ -334,7 +334,7 @@
*/
}else{
// new code (rotating the text ourselves for better quality on screens)
- QPixmap pm( txtWidth+2, txtHeight+2, 1 );
+ QPixmap pm( txtWidth+2, txtHeight+2, Qt::AutoColor );
// note: When using colored axis labels it will be necessary
// to change this code and use a 256 color pixmap instead
// of a monochrome one. (khz, 2002/08/15)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic