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(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)