Cleaning up the GUI for the monitor profile and rendering intent +

output profile rendering intent + soft-proof button.

DCP profile GUI switched from 2x2 array to a single column.
This commit is contained in:
Hombre
2015-12-18 01:45:59 +01:00
parent 32eb6b996c
commit e9141dd98c
8 changed files with 75 additions and 58 deletions

View File

@@ -478,6 +478,11 @@ void ICCStore::findDefaultMonitorProfile ()
if (GetICMProfileA(hDC, &profileLength, profileName)) {
defaultMonitorProfile = Glib::ustring(profileName);
defaultMonitorProfile = Glib::path_get_basename(defaultMonitorProfile);
size_t pos = defaultMonitorProfile.rfind(".");
if (pos != Glib::ustring::npos) {
defaultMonitorProfile = defaultMonitorProfile.substr(0, pos);
}
}
// might fail if e.g. the monitor has no profile