summaryrefslogtreecommitdiffstats
path: root/src/qt3support/text/q3richtext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qt3support/text/q3richtext.cpp')
-rw-r--r--src/qt3support/text/q3richtext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt3support/text/q3richtext.cpp b/src/qt3support/text/q3richtext.cpp
index dc1476c..c367c0c 100644
--- a/src/qt3support/text/q3richtext.cpp
+++ b/src/qt3support/text/q3richtext.cpp
@@ -121,7 +121,7 @@ static inline bool isBreakable(Q3TextString *string, int pos)
{
if (string->at(pos).nobreak)
return false;
- return (pos < string->length()-1 && string->at(pos+1).softBreak);
+ return (pos+1 < string->length() && string->at(pos+1).softBreak);
}
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++