From 002f37bdc962c1558d6101ca101c3def54bfd542 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Mon, 17 Dec 2007 12:46:11 +0000 Subject: [PATCH] corrected parameters order --- src/symbolizer.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/symbolizer.cpp b/src/symbolizer.cpp index 56816a6b8..592de0f79 100644 --- a/src/symbolizer.cpp +++ b/src/symbolizer.cpp @@ -37,7 +37,7 @@ namespace mapnik { : image_(new ImageData32(width,height)), image_filename_( file ) { - std::auto_ptr reader(get_image_reader(type,file)); + std::auto_ptr reader(get_image_reader(file,type)); if (reader.get()) reader->read(0,0,*image_); } @@ -50,11 +50,12 @@ namespace mapnik { { return image_; } - void symbolizer_with_image::set_image(boost::shared_ptr symbol) + void symbolizer_with_image::set_image(boost::shared_ptr image) { - image_ = symbol; + image_ = image; } - const std::string & symbolizer_with_image::get_filename() const + + std::string const& symbolizer_with_image::get_filename() const { return image_filename_; }