author | zautrix <zautrix> | 2005-03-21 14:42:01 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-21 14:42:01 (UTC) |
commit | 6e5a0c6cff04fff115e63b62537c5274dc7a5564 (patch) (side-by-side diff) | |
tree | 5d40aadc33768fa31036aefdf965462248358361 /korganizer | |
parent | 3bd97904e69bf586122ad82d279c37db0861eefb (diff) | |
download | kdepimpi-6e5a0c6cff04fff115e63b62537c5274dc7a5564.zip kdepimpi-6e5a0c6cff04fff115e63b62537c5274dc7a5564.tar.gz kdepimpi-6e5a0c6cff04fff115e63b62537c5274dc7a5564.tar.bz2 |
fix
-rw-r--r-- | korganizer/kodaymatrix.cpp | 5 | ||||
-rw-r--r-- | korganizer/koeventviewer.cpp | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/korganizer/kodaymatrix.cpp b/korganizer/kodaymatrix.cpp index 493382d..a776cb6 100644 --- a/korganizer/kodaymatrix.cpp +++ b/korganizer/kodaymatrix.cpp @@ -199,13 +199,14 @@ QString KODayMatrix::getWhatsThisText( QPoint p ) mToolTipText.replace( '<' , "<" ); mToolTipText.replace( '>' , ">" ); #else - if ( mToolTipText.find ('<') > 0 ) { + if ( mToolTipText.find ('<') >= 0 ) { mToolTipText.replace( QRegExp("<") , "<" ); } - if ( mToolTipText.find ('>') > 0 ) { + if ( mToolTipText.find ('>') >= 0 ) { mToolTipText.replace( QRegExp(">") , ">" ); } #endif + //qDebug("TTT: %s ", mToolTipText.latin1()); mToolTip.append( mToolTipText ); } mToolTip.sort(); diff --git a/korganizer/koeventviewer.cpp b/korganizer/koeventviewer.cpp index 135ca73..1508638 100644 --- a/korganizer/koeventviewer.cpp +++ b/korganizer/koeventviewer.cpp @@ -698,10 +698,10 @@ QString KOEventViewer::deTag(QString text) text.replace( '<' , "<" ); text.replace( '>' , ">" ); #else - if ( text.find ('<') > 0 ) { + if ( text.find ('<') >= 0 ) { text.replace( QRegExp("<") , "<" ); } - if ( text.find ('>') > 0 ) { + if ( text.find ('>') >= 0 ) { text.replace( QRegExp(">") , ">" ); } #endif |