Skip to content

Commit c4d1392

Browse files
committed
Fix Agg complexity exception so it is thrown multiple times correctly.
svn path=/branches/v1_0_maint/; revision=8790
1 parent f4aeb5b commit c4d1392

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)