[gimp] app: use the image's projectable format for profile conversion
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: use the image's projectable format for profile conversion
- Date: Mon, 14 Dec 2015 22:03:21 +0000 (UTC)
commit 0ad8c786b58db53299bacce7b08d1c05b28d6b72
Author: Michael Natterer <mitch gimp org>
Date: Mon Dec 14 23:02:31 2015 +0100
app: use the image's projectable format for profile conversion
which is RGB for RGB and INDEXED images, and GRAY for GRAY images.
app/display/gimpdisplayshell-profile.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-profile.c b/app/display/gimpdisplayshell-profile.c
index 83c2e98..1260866 100644
--- a/app/display/gimpdisplayshell-profile.c
+++ b/app/display/gimpdisplayshell-profile.c
@@ -35,7 +35,7 @@
#include "gegl/gimp-babl.h"
#include "core/gimpimage.h"
-#include "core/gimppickable.h"
+#include "core/gimpprojectable.h"
#include "gimpdisplay.h"
#include "gimpdisplayshell.h"
@@ -91,9 +91,7 @@ gimp_display_shell_profile_update (GimpDisplayShell *shell)
if (! src_profile)
return;
- src_format = gimp_babl_format (GIMP_RGB,
- gimp_image_get_precision (image),
- TRUE);
+ src_format = gimp_projectable_get_format (GIMP_PROJECTABLE (image));
if (gimp_display_shell_has_filter (shell) ||
! gimp_display_shell_profile_can_convert_to_u8 (shell))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]