Commit 0cb36b57 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Simplify

parent 67ca592a
......@@ -488,8 +488,8 @@ sqlite_load_bookmarks(zathura_database_t* db, const char* file)
bookmark->page = sqlite3_column_int(stmt, 1);
bookmark->x = sqlite3_column_double(stmt, 2);
bookmark->y = sqlite3_column_double(stmt, 3);
bookmark->x = bookmark->x <= 0.0 ? DBL_MIN : bookmark->x;
bookmark->y = bookmark->y <= 0.0 ? DBL_MIN : bookmark->y;
bookmark->x = MAX(DBL_MIN, bookmark->x);
bookmark->y = MAX(DBL_MIN, bookmark->y);
girara_list_append(result, bookmark);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment