12bd665
diff --git a/cupsfilters/ppdgenerator.h b/cupsfilters/ppdgenerator.h
12bd665
index 050c3201..027b9752 100644
12bd665
--- a/cupsfilters/ppdgenerator.h
12bd665
+++ b/cupsfilters/ppdgenerator.h
12bd665
@@ -73,6 +73,7 @@ int             compare_resolutions(void *resolution_a, void *resolution_b,
12bd665
 				    void *user_data);
12bd665
 void            free_resolution(void *resolution, void *user_data);
12bd665
 res_t *         ippResolutionToRes(ipp_attribute_t *attr, int index);
12bd665
+res_t *         resolutionNew(int x, int y);
12bd665
 cups_array_t *  resolutionArrayNew();
12bd665
 cups_array_t*   generate_sizes(ipp_t *response,
12bd665
 			       ipp_attribute_t **defattr,
12bd665
diff --git a/utils/cups-browsed.c b/utils/cups-browsed.c
12bd665
index f47b8115..89c403fc 100644
12bd665
--- a/utils/cups-browsed.c
12bd665
+++ b/utils/cups-browsed.c
12bd665
@@ -6535,12 +6535,14 @@ on_job_state (CupsNotifier *object,
12bd665
 	      min_res->x = res->x;
12bd665
 	      min_res->y = res->y;
12bd665
 	    } else {
12bd665
-	      if(compare_resolutions((void *)res,(void *)max_res,NULL) > 0)
12bd665
+	      if(compare_resolutions((void *)res,(void *)max_res,NULL) > 0) {
12bd665
 		max_res->x = res->x;
12bd665
 		max_res->y = res->y;
12bd665
-	      if(compare_resolutions((void *)res,(void *)min_res,NULL) < 0)
12bd665
+	      }
12bd665
+	      if(compare_resolutions((void *)res,(void *)min_res,NULL) < 0) {
12bd665
 		min_res->x = res->x;
12bd665
 		min_res->y = res->y;
12bd665
+	      }
12bd665
 	    }
12bd665
 	    free_resolution(res, NULL);
12bd665
 	    res = NULL;