aboutsummaryrefslogtreecommitdiff
path: root/src/cell_explorer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cell_explorer.c')
-rw-r--r--src/cell_explorer.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/cell_explorer.c b/src/cell_explorer.c
index b0ccf12b..1087ce54 100644
--- a/src/cell_explorer.c
+++ b/src/cell_explorer.c
@@ -1065,9 +1065,11 @@ static gint keypress_sig(GtkWidget *widget, GdkEventKey *event, HistoBox *h)
/* I'm too lazy to press shift */
if ( (event->keyval == GDK_plus) || (event->keyval == GDK_equal) ) {
- h->n *= 2;
- scan_cells(h->parent);
- gtk_widget_queue_draw(h->da);
+ if ( h->n < 100000 ) {
+ h->n *= 2;
+ scan_cells(h->parent);
+ gtk_widget_queue_draw(h->da);
+ }
}
if ( (event->keyval == GDK_minus) && (h->n > 1) ) {