summaryrefslogtreecommitdiffstats
path: root/src/color-profile.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2007-11-20 09:20:42 +0000
committerjoncruz <joncruz@users.sourceforge.net>2007-11-20 09:20:42 +0000
commitc724e396729e2f2482b84bab8a8eee2b01cff987 (patch)
treefb2dfedee0a8d448df4c617d9d9d1affc7275522 /src/color-profile.cpp
parentadd one fractional digit to zooms less than 10% (diff)
downloadinkscape-c724e396729e2f2482b84bab8a8eee2b01cff987.tar.gz
inkscape-c724e396729e2f2482b84bab8a8eee2b01cff987.zip
Display CMS adjustment per-desktop view
(bzr r4114)
Diffstat (limited to 'src/color-profile.cpp')
-rw-r--r--src/color-profile.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/color-profile.cpp b/src/color-profile.cpp
index f676ceacf..2a17f698b 100644
--- a/src/color-profile.cpp
+++ b/src/color-profile.cpp
@@ -680,10 +680,9 @@ cmsHPROFILE Inkscape::colorprofile_get_system_profile_handle()
init = true;
}
- long long int which = prefs_get_int_attribute_limited( "options.displayprofile", "enable", 0, 0, 1 );
gchar const * uri = prefs_get_string_attribute("options.displayprofile", "uri");
- if ( which && uri && *uri ) {
+ if ( uri && *uri ) {
if ( lastURI != std::string(uri) ) {
lastURI.clear();
if ( theOne ) {
@@ -825,7 +824,7 @@ cmsHTRANSFORM Inkscape::colorprofile_get_display_transform()
lastGamutColor = gamutColor;
}
- // Fecth these now, as they might clear the transform as a side effect.
+ // Fetch these now, as they might clear the transform as a side effect.
cmsHPROFILE hprof = Inkscape::colorprofile_get_system_profile_handle();
cmsHPROFILE proofProf = hprof ? Inkscape::colorprofile_get_proof_profile_handle() : 0;