Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zathura
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
111
Issues
111
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwmt
zathura
Commits
4696e10c
Commit
4696e10c
authored
Apr 01, 2016
by
Sebastian Ramacher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some clean up
Signed-off-by:
Sebastian Ramacher
<
sebastian+dev@ramacher.at
>
parent
3bc1d819
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
zathura/utils.c
zathura/utils.c
+5
-5
No files found.
zathura/utils.c
View file @
4696e10c
...
...
@@ -257,17 +257,17 @@ find_first_page_column(const char* first_page_column_list,
{
/* sanity checks */
unsigned
int
first_page_column
=
1
;
g_return_val_if_fail
(
first_page_column_list
!=
NULL
,
first_page_column
);
g_return_val_if_fail
(
strcmp
(
first_page_column_list
,
""
)
,
first_page_column
);
g_return_val_if_fail
(
pages_per_row
>
0
,
first_page_column
);
g_return_val_if_fail
(
first_page_column_list
!=
NULL
,
first_page_column
);
g_return_val_if_fail
(
*
first_page_column_list
!=
'\0'
,
first_page_column
);
g_return_val_if_fail
(
pages_per_row
>
0
,
first_page_column
);
/* split settings list */
char
**
settings
=
g_strsplit
(
first_page_column_list
,
":"
,
pages_per_row
+
1
);
char
**
settings
=
g_strsplit
(
first_page_column_list
,
":"
,
pages_per_row
+
1
);
const
size_t
settings_size
=
g_strv_length
(
settings
);
/* read setting value corresponding to the specified pages per row */
unsigned
int
index
=
pages_per_row
-
1
;
if
(
settings_size
>
index
&&
strcmp
(
settings
[
index
],
""
)
)
{
if
(
index
<
settings_size
&&
*
settings
[
index
]
!=
'\0'
)
{
first_page_column
=
atoi
(
settings
[
index
]);
}
...
...
Write
Preview
Markdown
is supported
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