| 663 |
|
|
| 664 |
ret = section_list_select(page_count, article_count, &page_id, &selected_index); |
ret = section_list_select(page_count, article_count, &page_id, &selected_index); |
| 665 |
|
|
|
// Update current aid location |
|
|
section_aid_locations[section_index] = p_articles[selected_index]->aid; |
|
|
|
|
| 666 |
switch (ret) |
switch (ret) |
| 667 |
{ |
{ |
| 668 |
case EXIT_SECTION: |
case EXIT_SECTION: |
| 669 |
|
// Update current aid location |
| 670 |
|
if (p_articles[selected_index] != NULL) |
| 671 |
|
{ |
| 672 |
|
section_aid_locations[section_index] = p_articles[selected_index]->aid; |
| 673 |
|
} |
| 674 |
|
else |
| 675 |
|
{ |
| 676 |
|
log_error("p_articles[selected_index=%d] is NULL when exit section [%s]\n", selected_index, sname); |
| 677 |
|
} |
| 678 |
return 0; |
return 0; |
| 679 |
case CHANGE_PAGE: |
case CHANGE_PAGE: |
| 680 |
ret = query_section_articles(p_section, page_id, p_articles, &article_count, &page_count, &ontop_start_offset); |
ret = query_section_articles(p_section, page_id, p_articles, &article_count, &page_count, &ontop_start_offset); |