# HG changeset patch # User darkvater # Date 2004-12-22 21:37:28 # Node ID 536180419d2843eb7b32a5b6f162d0574ed45e0b # Parent be3f6b12cf89918c167bea8b0b64913d1b7d250c (svn r1237) -Fix: Viewports crash when too many viewports are open. Their amount was not updated to reflect the updated windows amount (thx lefti) diff --git a/viewport.h b/viewport.h --- a/viewport.h +++ b/viewport.h @@ -99,7 +99,8 @@ typedef struct TileHighlightData { bool HandlePlacePushButton(Window *w, int widget, uint32 cursor, int mode, PlaceProc *placeproc); /* viewport.c */ -VARDEF ViewPort _viewports[18]; +// XXX - maximum viewports is maximum windows - 2 (main toolbar + status bar) +VARDEF ViewPort _viewports[25 - 2]; VARDEF TileHighlightData _thd; VARDEF uint32 _active_viewports;