diff --git a/demo/c++/rundemo.cpp b/demo/c++/rundemo.cpp index 20f4b6c16..6f723f1d0 100644 --- a/demo/c++/rundemo.cpp +++ b/demo/c++/rundemo.cpp @@ -237,8 +237,8 @@ int main ( int argc , char** argv) agg_renderer ren(m,buf); ren.apply(); - ImageUtils::save_to_file("demo.jpg","jpeg",buf); - ImageUtils::save_to_file("demo.png","png",buf); + save_to_file("demo.jpg","jpeg",buf.data()); + save_to_file("demo.png","png",buf.data()); std::cout << "Two maps have been rendered in the current directory:\n" "- demo.jpg\n"