Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
9f5430e4
Commit
9f5430e4
authored
Apr 25, 2011
by
Moritz Lipp
Browse files
Handle 0 pages-per-row
parent
4146cfbb
Changes
1
Show whitespace changes
Inline
Side-by-side
zathura.c
View file @
9f5430e4
...
...
@@ -335,6 +335,11 @@ error_out:
void
page_view_set_mode
(
zathura_t
*
zathura
,
unsigned
int
pages_per_row
)
{
/* show at least one page */
if
(
pages_per_row
==
0
)
{
pages_per_row
=
1
;
}
gtk_table_resize
(
GTK_TABLE
(
zathura
->
ui
.
page_view
),
zathura
->
document
->
number_of_pages
/
pages_per_row
+
1
,
pages_per_row
);
for
(
unsigned
int
i
=
0
;
i
<
zathura
->
document
->
number_of_pages
;
i
++
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment