Skip to content
Browse files

+ remove the unnecessary empty palette from tostring2

  (jonburgess777)
  • Loading branch information...
1 parent c97399b commit 7387afd96ff42184376a742eba7aa47769ff21e1 @artemp artemp committed Oct 3, 2011
Showing with 2 additions and 4 deletions.
  1. +1 −2 bindings/python/mapnik_image.cpp
  2. +1 −2 bindings/python/mapnik_image_view.cpp
View
3 bindings/python/mapnik_image.cpp
@@ -79,8 +79,7 @@ PyObject* tostring1( image_32 const& im)
// encode (png,jpeg)
PyObject* tostring2(image_32 const & im, std::string const& format)
{
- mapnik::rgba_palette pal;
- std::string s = save_to_string(im, format, pal);
+ std::string s = save_to_string(im, format);
return
#if PY_VERSION_HEX >= 0x03000000
::PyBytes_FromStringAndSize
View
3 bindings/python/mapnik_image_view.cpp
@@ -63,8 +63,7 @@ PyObject* view_tostring1(image_view<image_data_32> const& view)
// encode (png,jpeg)
PyObject* view_tostring2(image_view<image_data_32> const & view, std::string const& format)
{
- mapnik::rgba_palette pal;
- std::string s = save_to_string(view, format, pal);
+ std::string s = save_to_string(view, format);
return
#if PY_VERSION_HEX >= 0x03000000
::PyBytes_FromStringAndSize

0 comments on commit 7387afd

Please sign in to comment.
Something went wrong with that request. Please try again.