From 71bbb33a6a6c0e2d876d84abb9aa98c322a307e8 Mon Sep 17 00:00:00 2001 From: fvogel Date: Sat, 11 Nov 2017 10:43:46 +0000 Subject: Fix [6b2fd1e881]: grid documentation for default for -row is wrong --- doc/grid.n | 3 ++- generic/tkGrid.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/grid.n b/doc/grid.n index 9ac84d9..c558071 100644 --- a/doc/grid.n +++ b/doc/grid.n @@ -160,7 +160,8 @@ This space is added outside the slave(s) border. Insert the slave so that it occupies the \fIn\fRth row in the grid. Row numbers start with 0. If this option is not supplied, then the slave is arranged on the same row as the previous slave specified on this -call to \fBgrid\fR, or the first unoccupied row if this is the first slave. +call to \fBgrid\fR, or the next row after the highest occupied row +if this is the first slave. .TP \fB\-rowspan \fIn\fR . diff --git a/generic/tkGrid.c b/generic/tkGrid.c index 62c9c59..6b9f543 100644 --- a/generic/tkGrid.c +++ b/generic/tkGrid.c @@ -3083,7 +3083,8 @@ ConfigureSlaves( } /* - * If no -row is given, use the first unoccupied row of the master. + * If no -row is given, use the next row after the highest occupied row + * of the master. */ if (defaultRow < 0) { -- cgit v0.12