~ubuntu-branches/ubuntu/gutsy/matplotlib/gutsy

« back to all changes in this revision

Viewing changes to src/_wxagg.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Michael Bienia
  • Date: 2007-07-31 23:04:56 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070731230456-lfmr0h69yh1i37w1
Tags: 0.90.1-2ubuntu1
* Merge from Debian unstable. Remaining changes:
  + debian/rules:
    - Check only the files for the python version which just got installed
      (fixes FTBFS).
    - Modify Maintainer value to match DebianMaintainerField spec.

Show diffs side-by-side

added added

removed removed

Lines of Context:
235
235
    // Convert everything: rgba => rgb -> image => bitmap
236
236
    // Convert a region:   rgba => clipped rgba => rgb -> image => bitmap
237
237
    wxImage *image = convert_agg2image(aggRenderer, clipbox);
238
 
    wxBitmap *bitmap = new wxBitmap(image);
 
238
    wxBitmap *bitmap = new wxBitmap(*image);
239
239
 
240
240
    image->Destroy();
241
241
    delete image;
258
258
  init_wxagg(void)
259
259
{
260
260
  wxPyCoreAPI_IMPORT();
261
 
  //suppress unused warning by creating in two lines
 
261
  //suppress an unused variable warning by creating _wxagg_module in two lines
262
262
  static _wxagg_module* _wxagg = NULL;
263
263
  _wxagg = new _wxagg_module;
264
264
};