summaryrefslogtreecommitdiffstats
path: root/src/gui/text
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2011-01-10 11:14:55 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2011-01-10 11:14:55 (GMT)
commit03dba6aa6d3a4738d2ff63feabff94cec1c1e5cd (patch)
treee03b32d1daeae2dc89159cc2bd7a63702a9d7965 /src/gui/text
parent6e6bdedd06c72f857590b32462548448da6d59b5 (diff)
parent64852122ba71bbb297b4f1e440f6fabee16ca2fe (diff)
downloadQt-03dba6aa6d3a4738d2ff63feabff94cec1c1e5cd.zip
Qt-03dba6aa6d3a4738d2ff63feabff94cec1c1e5cd.tar.gz
Qt-03dba6aa6d3a4738d2ff63feabff94cec1c1e5cd.tar.bz2
Merge branch 'graphics-team-text-4.7' into 4.7
Diffstat (limited to 'src/gui/text')
-rw-r--r--src/gui/text/qtextobject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/text/qtextobject.cpp b/src/gui/text/qtextobject.cpp
index ea2ef2d..4b92379 100644
--- a/src/gui/text/qtextobject.cpp
+++ b/src/gui/text/qtextobject.cpp
@@ -1488,7 +1488,7 @@ QTextBlock::iterator QTextBlock::end() const
*/
QTextBlock QTextBlock::next() const
{
- if (!p)
+ if (!isValid())
return QTextBlock();
return QTextBlock(p, p->blockMap().next(n));
@@ -1504,7 +1504,7 @@ QTextBlock QTextBlock::next() const
*/
QTextBlock QTextBlock::previous() const
{
- if (!p)
+ if (!isValid())
return QTextBlock();
return QTextBlock(p, p->blockMap().previous(n));