Skip to content

Commit d4ec93f

Browse files
committed
Merged revisions 8790 via svnmerge from
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v1_0_maint ........ r8790 | mdboom | 2010-11-10 12:00:51 -0500 (Wed, 10 Nov 2010) | 2 lines Fix Agg complexity exception so it is thrown multiple times correctly. ........ svn path=/trunk/matplotlib/; revision=8791
1 parent b2e04af commit d4ec93f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

agg24/include/agg_rasterizer_cells_aa.h

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,8 @@ namespace agg
184184
if((m_num_cells & cell_block_mask) == 0)
185185
{
186186
if(m_num_blocks >= cell_block_limit) {
187-
static Py::Exception e(
188-
Py::OverflowError(
189-
"Agg rendering complexity exceeded. Consider downsampling or decimating your data."));
190-
191-
/* If this exception is thrown too often, one can
192-
increase cell_block_limit */
193-
throw e;
187+
throw Py::OverflowError(
188+
"Agg rendering complexity exceeded. Consider downsampling or decimating your data.");
194189
}
195190
allocate_block();
196191
}

0 commit comments

Comments
 (0)