Fossil SCM
Actually use pEditHead
Commit
9e92401129c107ae47018c4b3b7247f5a7017a34a4f7d166e12a5db5dd5e2111
Parent
7114bdc827e9ee2…
1 file changed
+1
-1
+1
-1
| --- src/forum.c | ||
| +++ src/forum.c | ||
| @@ -643,11 +643,11 @@ | ||
| 643 | 643 | int iIndentScale = 4; |
| 644 | 644 | |
| 645 | 645 | pThread = forumthread_create(froot, 1); |
| 646 | 646 | for(p=pThread->pFirst; p; p=p->pNext){ |
| 647 | 647 | if( p->fpid==target ){ |
| 648 | - while( p->pEditPrev ) p = p->pEditPrev; | |
| 648 | + if( p->pEditHead ) p = p->pEditHead; | |
| 649 | 649 | target = p->fpid; |
| 650 | 650 | break; |
| 651 | 651 | } |
| 652 | 652 | } |
| 653 | 653 | while( iIndentScale>1 && iIndentScale*pThread->mxIndent>25 ){ |
| 654 | 654 |
| --- src/forum.c | |
| +++ src/forum.c | |
| @@ -643,11 +643,11 @@ | |
| 643 | int iIndentScale = 4; |
| 644 | |
| 645 | pThread = forumthread_create(froot, 1); |
| 646 | for(p=pThread->pFirst; p; p=p->pNext){ |
| 647 | if( p->fpid==target ){ |
| 648 | while( p->pEditPrev ) p = p->pEditPrev; |
| 649 | target = p->fpid; |
| 650 | break; |
| 651 | } |
| 652 | } |
| 653 | while( iIndentScale>1 && iIndentScale*pThread->mxIndent>25 ){ |
| 654 |
| --- src/forum.c | |
| +++ src/forum.c | |
| @@ -643,11 +643,11 @@ | |
| 643 | int iIndentScale = 4; |
| 644 | |
| 645 | pThread = forumthread_create(froot, 1); |
| 646 | for(p=pThread->pFirst; p; p=p->pNext){ |
| 647 | if( p->fpid==target ){ |
| 648 | if( p->pEditHead ) p = p->pEditHead; |
| 649 | target = p->fpid; |
| 650 | break; |
| 651 | } |
| 652 | } |
| 653 | while( iIndentScale>1 && iIndentScale*pThread->mxIndent>25 ){ |
| 654 |