[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdevelop/parts/qeditor
From: Harald Fernengel <harry () kdevelop ! org>
Date: 2003-04-01 22:27:57
[Download RAW message or body]
CVS commit by harald:
fix 0x0 crash
M +5 -2 qeditor_view.cpp 1.38
--- kdevelop/parts/qeditor/qeditor_view.cpp #1.37:1.38
@@ -357,5 +357,5 @@ void QEditorView::proceed()
QTextParagraph * firstParagraph = m_editor->document()->firstParagraph();
int firstIndex = 0;
- QTextParagraph * startParagraph = 0L;
+ QTextParagraph * startParagraph = firstParagraph;
int startIndex = 0;
QTextParagraph * lastParagraph;
@@ -416,4 +416,7 @@ bool QEditorView::find_real( QTextParagr
QTextParagraph* lastParagraph, int lastIndex )
{
+ Q_ASSERT( firstParagraph );
+ Q_ASSERT( lastParagraph );
+
m_currentParag = firstParagraph;
m_offset = 0;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic