Skip to content

Commit

Permalink
+ remove the unnecessary empty palette from tostring2
Browse files Browse the repository at this point in the history
  (jonburgess777)
  • Loading branch information
artemp committed Oct 3, 2011
1 parent c97399b commit 7387afd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions bindings/python/mapnik_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions bindings/python/mapnik_image_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7387afd

Please sign in to comment.