changeset 19920:fa68a3f7dd8a

__magick_read__.cc: add warning id for possibly low Magick quantum depth.
author Carnë Draug <carandraug@octave.org>
date Sun, 01 Mar 2015 22:52:14 +0000
parents e814e202cd84
children 17d21d68888d
files libinterp/dldfcn/__magick_read__.cc
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/dldfcn/__magick_read__.cc	Sat Feb 28 03:44:00 2015 -0600
+++ b/libinterp/dldfcn/__magick_read__.cc	Sun Mar 01 22:52:14 2015 +0000
@@ -710,8 +710,9 @@
       setlocale (LC_ALL, locale.c_str ());
 
       if (QuantumDepth < 32)
-        warning ("your version of %s limits images to %d bits per pixel",
-                 MagickPackageName, QuantumDepth);
+        warning_with_id ("Octave:GraphicsMagic-Quantum-Depth",
+                         "your version of %s limits images to %d bits per pixel",
+                         MagickPackageName, QuantumDepth);
 
       initialized = true;
     }