fix
This commit is contained in:
parent
d8bc5adbde
commit
2af7bcd326
|
@ -2462,13 +2462,13 @@ void txt_layout_real_size(layout_t lay, int *pw, int *ph)
|
||||||
if (!layout)
|
if (!layout)
|
||||||
return;
|
return;
|
||||||
for (line = layout->lines; line; line = line->next) {
|
for (line = layout->lines; line; line = line->next) {
|
||||||
if (line->w > w)
|
|
||||||
w = line->w;
|
|
||||||
|
|
||||||
while (!line->num && line->next)
|
while (!line->num && line->next)
|
||||||
line = line->next;
|
line = line->next;
|
||||||
|
|
||||||
if (line->num && line->y + line->h > h)
|
if (line->w > w)
|
||||||
|
w = line->w;
|
||||||
|
|
||||||
|
if (line->num && line->y + line->h > h)
|
||||||
h = line->y + line->h;
|
h = line->y + line->h;
|
||||||
}
|
}
|
||||||
if (pw)
|
if (pw)
|
||||||
|
|
|
@ -21,7 +21,7 @@ char *getpath(const char *d, const char *n)
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int is_space(int c)
|
int is_space(int c)
|
||||||
{
|
{
|
||||||
return (c == ' ' || c == '\t');
|
return (c == ' ' || c == '\t');
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,7 @@ struct parser {
|
||||||
void *p;
|
void *p;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extern int is_space(int c);
|
||||||
extern int parse_ini(const char *path, struct parser *cmd_parser);
|
extern int parse_ini(const char *path, struct parser *cmd_parser);
|
||||||
extern char *getpath(const char *d, const char *n);
|
extern char *getpath(const char *d, const char *n);
|
||||||
extern char *strip(char *s);
|
extern char *strip(char *s);
|
||||||
|
|
Reference in a new issue