summaryrefslogtreecommitdiffstats
path: root/korganizer/printing/calprintdefaultplugins.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-12 07:29:30 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-12 07:29:30 +0000
commit11dddb7e7b574289115a620ff29e3fe4269125b6 (patch)
tree9f007c0993b70cf9e202dbb6f6e0ce5dfd379c8f /korganizer/printing/calprintdefaultplugins.cpp
parent8a6e705fe8a51ef7afbc76e0e738a945649ba2c1 (diff)
downloadtdepim-11dddb7e7b574289115a620ff29e3fe4269125b6.tar.gz
tdepim-11dddb7e7b574289115a620ff29e3fe4269125b6.zip
Fix FTBFS under Slackware
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1174370 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korganizer/printing/calprintdefaultplugins.cpp')
-rw-r--r--korganizer/printing/calprintdefaultplugins.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/korganizer/printing/calprintdefaultplugins.cpp b/korganizer/printing/calprintdefaultplugins.cpp
index eaa09f404..8c2539e85 100644
--- a/korganizer/printing/calprintdefaultplugins.cpp
+++ b/korganizer/printing/calprintdefaultplugins.cpp
@@ -49,7 +49,11 @@
#include "calprintmonthconfig_base.h"
#include "calprinttodoconfig_base.h"
-extern TQString cleanStr(const TQString &instr);
+static TQString cleanString( const TQString &instr )
+{
+ TQString ret = instr;
+ return ret.replace( '\n', ' ' );
+}
/**************************************************************
* Print Incidence
@@ -767,10 +771,10 @@ void CalPrintDay::print( TQPainter &p, int width, int height )
count++;
TQString str;
if ( (*it)->location().isEmpty() ) {
- str = cleanStr( (*it)->summary() );
+ str = cleanString( (*it)->summary() );
} else {
str = i18n( "summary, location", "%1, %2" ).
- arg( cleanStr( (*it)->summary() ), cleanStr( (*it)->location() ) );
+ arg( cleanString( (*it)->summary() ), cleanString( (*it)->location() ) );
}
printEventString( p, eventBox, str );
eventBox.setTop( eventBox.bottom() );