mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-02 01:40:13 -05:00
config; {horizontal,vertical}-letter-offsets may be negative
This commit is contained in:
parent
70cfcf11fb
commit
c2be3408ed
1 changed files with 4 additions and 4 deletions
8
config.c
8
config.c
|
|
@ -591,8 +591,8 @@ parse_section_main(const char *key, const char *value, struct config *conf,
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (strcmp(key, "horizontal-letter-offset") == 0) {
|
else if (strcmp(key, "horizontal-letter-offset") == 0) {
|
||||||
unsigned long offset;
|
long offset;
|
||||||
if (!str_to_ulong(value, 10, &offset)) {
|
if (!str_to_long(value, 10, &offset)) {
|
||||||
LOG_AND_NOTIFY_ERR(
|
LOG_AND_NOTIFY_ERR(
|
||||||
"%s:%d: [default]: horizontal-letter-offset: "
|
"%s:%d: [default]: horizontal-letter-offset: "
|
||||||
"expected an integer, got '%s'", path, lineno, value);
|
"expected an integer, got '%s'", path, lineno, value);
|
||||||
|
|
@ -602,8 +602,8 @@ parse_section_main(const char *key, const char *value, struct config *conf,
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (strcmp(key, "vertical-letter-offset") == 0) {
|
else if (strcmp(key, "vertical-letter-offset") == 0) {
|
||||||
unsigned long offset;
|
long offset;
|
||||||
if (!str_to_ulong(value, 10, &offset)) {
|
if (!str_to_long(value, 10, &offset)) {
|
||||||
LOG_AND_NOTIFY_ERR(
|
LOG_AND_NOTIFY_ERR(
|
||||||
"%s:%d: [default]: horizontal-letter-offset: "
|
"%s:%d: [default]: horizontal-letter-offset: "
|
||||||
"expected an integer, got '%s'", path, lineno, value);
|
"expected an integer, got '%s'", path, lineno, value);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue