]> git.pld-linux.org Git - packages/octave.git/blob - octave-InitializeMagick.patch
- release 3
[packages/octave.git] / octave-InitializeMagick.patch
1 --- octave-3.2.4/src/DLD-FUNCTIONS/__magick_read__.cc   2009-08-25 10:26:01.000000000 +0200
2 +++ octave-3.3.51/src/DLD-FUNCTIONS/__magick_read__.cc  2010-03-03 18:49:00.000000000 +0100
3 @@ -27,6 +28,7 @@
4  
5  #include <cmath>
6  
7 +#include "oct-env.h"
8  #include "defun-dld.h"
9  #include "error.h"
10  #include "ov-struct.h"
11 @@ -358,6 +384,17 @@
12  
13  #ifdef HAVE_MAGICK
14  
15 +  static bool initialized = false;
16 +
17 +  if (! initialized)
18 +    {
19 +      std::string program_name = octave_env::get_program_invocation_name ();
20 +
21 +      Magick::InitializeMagick (program_name.c_str ());
22 +
23 +      initialized = true;
24 +    }
25 +
26    if (args.length () > 2 || args.length () < 1 || ! args(0).is_string ()
27        || nargout > 3)
28      {
This page took 0.025816 seconds and 3 git commands to generate.