From 1083fdcdb608210a42e00fc6819a6d5ce5996b2a Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Fri, 3 Oct 2014 14:05:35 +0000 Subject: Imported Upstream version 0.994 --- src/xsane-device-preferences.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/xsane-device-preferences.c') diff --git a/src/xsane-device-preferences.c b/src/xsane-device-preferences.c index 41293e6..ce05cae 100644 --- a/src/xsane-device-preferences.c +++ b/src/xsane-device-preferences.c @@ -440,7 +440,10 @@ void xsane_device_preferences_load_file(char *filename) xsane.negative = 0; xsane.show_preview = 1; + xsane.enable_color_management = 0; + fd = open(filename, O_RDONLY); + if (fd >= 0) { /* prepare wire */ @@ -562,6 +565,17 @@ void xsane_device_preferences_load_file(char *filename) } } } + + if (!xsane.scanner_default_color_icm_profile) + { + xsane.scanner_default_color_icm_profile = strdup(""); + } + + if (!xsane.scanner_default_gray_icm_profile) + { + xsane.scanner_default_gray_icm_profile = strdup(""); + } + gtk_window_move(GTK_WINDOW(xsane.dialog), xsane.dialog_posx, xsane.dialog_posy); gtk_window_set_default_size(GTK_WINDOW(xsane.dialog), xsane.dialog_width, xsane.dialog_height); -- cgit v1.2.3