Skip to content

Commit

Permalink
Fix unix build
Browse files Browse the repository at this point in the history
  • Loading branch information
plzombie committed Jun 29, 2023
1 parent 0076ae6 commit 8c863e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/depress_outlines.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ bool depressOutlineAdd(depress_outline_type **outline_source, depress_outline_ty
if(!_suboutlines) return false;

_suboutlines[nof_suboutlines-1] = outline_add;
(*outline_source)->nof_suboutlines = (void **)nof_suboutlines;
(*outline_source)->suboutlines = _suboutlines;
(*outline_source)->nof_suboutlines = nof_suboutlines;
(*outline_source)->suboutlines = (void **)_suboutlines;

return true;
} else {
Expand Down

2 comments on commit 8c863e6

@plzombie
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zvezdochiot Добавил оглавления. Выглядит как-то так
изображение
И в файле

1|0|Chapter - First page
2|1|Subchapter - Second page
3|1|Subchapter - Third page
4|0|Chapter - Fourth page

Запускать с флагом -outline outline.txt
Можешь в демо добавить оглавления к журналу?

@zvezdochiot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @plzombie .

./depress -dpi 50 -outline test.outline.txt test.txt test.djvu

Всё как на картинке. Полёт нормальный. 👍

Please sign in to comment.