From 11dddb7e7b574289115a620ff29e3fe4269125b6 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 12 Sep 2010 07:29:30 +0000 Subject: Fix FTBFS under Slackware git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1174370 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- korganizer/printing/calprintdefaultplugins.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'korganizer') 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() ); -- cgit v1.2.1