Skip to content

Commit 7387afd

Browse files
committed
+ remove the unnecessary empty palette from tostring2
(jonburgess777)
1 parent c97399b commit 7387afd

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

bindings/python/mapnik_image.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ PyObject* tostring1( image_32 const& im)
7979
// encode (png,jpeg)
8080
PyObject* tostring2(image_32 const & im, std::string const& format)
8181
{
82-
mapnik::rgba_palette pal;
83-
std::string s = save_to_string(im, format, pal);
82+
std::string s = save_to_string(im, format);
8483
return
8584
#if PY_VERSION_HEX >= 0x03000000
8685
::PyBytes_FromStringAndSize

bindings/python/mapnik_image_view.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ PyObject* view_tostring1(image_view<image_data_32> const& view)
6363
// encode (png,jpeg)
6464
PyObject* view_tostring2(image_view<image_data_32> const & view, std::string const& format)
6565
{
66-
mapnik::rgba_palette pal;
67-
std::string s = save_to_string(view, format, pal);
66+
std::string s = save_to_string(view, format);
6867
return
6968
#if PY_VERSION_HEX >= 0x03000000
7069
::PyBytes_FromStringAndSize

0 commit comments

Comments
 (0)