Remove unnecessary check

This commit is contained in:
Sebastian Ramacher 2014-09-07 19:12:16 +02:00
parent c69ce573de
commit d9152a03fa

View File

@ -396,11 +396,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);
if (bookmark->page > 1) {
bookmark->x = bookmark->x == 0.0 ? DBL_MIN : bookmark->x;
bookmark->y = bookmark->y == 0.0 ? DBL_MIN : bookmark->y;
}
bookmark->x = bookmark->x <= 0.0 ? DBL_MIN : bookmark->x;
bookmark->y = bookmark->y <= 0.0 ? DBL_MIN : bookmark->y;
girara_list_append(result, bookmark);
}