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
87af53af
Commit
87af53af
authored
Dec 17, 2013
by
Sebastian Ramacher
Browse files
Make inital values more explicit
Signed-off-by:
Sebastian Ramacher
<
sebastian+dev@ramacher.at
>
parent
42a8382a
Changes
1
Show whitespace changes
Inline
Side-by-side
zathura.c
View file @
87af53af
...
@@ -536,8 +536,17 @@ document_open(zathura_t* zathura, const char* path, const char* password,
...
@@ -536,8 +536,17 @@ document_open(zathura_t* zathura, const char* path, const char* password,
}
}
/* read history file */
/* read history file */
zathura_fileinfo_t
file_info
=
{
0
,
0
,
1
,
0
,
0
,
0
,
0
,
0
};
zathura_fileinfo_t
file_info
=
{
bool
known_file
=
zathura_db_get_fileinfo
(
zathura
->
database
,
file_path
,
&
file_info
);
.
current_page
=
0
,
.
page_offset
=
0
,
.
scale
=
1
,
.
rotation
=
0
,
.
pages_per_row
=
0
,
.
first_page_column
=
0
,
.
position_x
=
0
,
.
position_y
=
0
};
const
bool
known_file
=
zathura_db_get_fileinfo
(
zathura
->
database
,
file_path
,
&
file_info
);
/* set page offset */
/* set page offset */
zathura_document_set_page_offset
(
document
,
file_info
.
page_offset
);
zathura_document_set_page_offset
(
document
,
file_info
.
page_offset
);
...
...
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