[gthumb] return the sRGB profile if the monitor has no profile



commit 3325d2cd5a65f0927b0216adc184061cfbbd1e79
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Jun 27 17:02:46 2017 +0200

    return the sRGB profile if the monitor has no profile

 gthumb/gth-browser.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 163b554..fffa01d 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -6994,6 +6994,10 @@ gth_browser_get_monitor_profile (GthBrowser *browser)
                }
        }
 #endif
+
+       if (browser->priv->screen_profile == NULL)
+               browser->priv->screen_profile = gth_icc_profile_new_srgb();
+
        return browser->priv->screen_profile;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]