Changeset 1657 for trunk/src/cairo_renderer.cpp
- Timestamp:
- 03/02/10 22:26:12 (5 months ago)
- Files:
-
- 1 modified
-
trunk/src/cairo_renderer.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cairo_renderer.cpp
r1656 r1657 732 732 { 733 733 std::string filename = path_processor_type::evaluate( *sym.get_filename(), feature); 734 boost::optional<mapnik::image_ptr> data = mapnik::image_cache::instance()->find(filename,true); 734 boost::optional<mapnik::image_ptr> data; 735 736 if ( filename.empty() ) 737 { 738 // default OGC 4x4 black pixel 739 data = boost::optional<mapnik::image_ptr>(new image_data_32(4,4)); 740 (*data)->set(0xff000000); 741 } 742 else 743 { 744 data = mapnik::image_cache::instance()->find(filename,true); 745 } 735 746 736 747 if ( data )
