]> granicus.if.org Git - graphviz/commitdiff
gdiplus is added to support bmp formats
authorarif <devnull@localhost>
Tue, 3 Mar 2009 18:01:41 +0000 (18:01 +0000)
committerarif <devnull@localhost>
Tue, 3 Mar 2009 18:01:41 +0000 (18:01 +0000)
plugin/gdiplus/gvloadimage_gdiplus.cpp

index 9d94d124ec5ef30c6a3f97fa84302044c393951f..aee0849acd030aaeb98bc0d3aaa8e8008d1e1c08 100755 (executable)
@@ -55,7 +55,7 @@ static Image* gdiplus_loadimage(GVJ_t * job, usershape_t *us)
 
                /* create image from the usershape file */
                /* NOTE: since Image::FromStream consumes the stream, we assume FileStream's lifetime should be shorter than us->name and us->f... */   
-               IStream *stream = FileStream::Create(us->name, us->f);
+               IStream *stream = FileStream::Create((char*)us->name, us->f);
                us->data = Image::FromStream (stream);
                
                /* clean up */