From 8492cab5590ccc3980bcc6399d1cb546116522ec Mon Sep 17 00:00:00 2001 From: nico Date: Sun, 10 Sep 2000 15:02:09 +0000 Subject: [PATCH] Do not resize columns which are not resizable git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7460 72102866-910b-0410-8b05-ffd578937521 --- Source/NSTableHeaderView.m | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/NSTableHeaderView.m b/Source/NSTableHeaderView.m index c35053205..c820629df 100644 --- a/Source/NSTableHeaderView.m +++ b/Source/NSTableHeaderView.m @@ -270,6 +270,10 @@ columns = [_tableView tableColumns]; /* Column at the left */ columnLow = [columns objectAtIndex: _resizedColumn]; + if ([columnLow isResizable] == NO) + { + return; + } /* We use p as a temporary variable for a while */ p = NSMinX (rectLow) + [columnLow minWidth]; minCoord = MAX (p, minCoord); @@ -278,7 +282,10 @@ /* Column at the right */ columnHigh = [columns objectAtIndex: _resizedColumn + 1]; - + if ([columnHigh isResizable] == NO) + { + return; + } /* This is trickier - think to what happens at the column on the right when the user released the mouse somewhere */ p = NSMaxX (rectHigh) - [columnHigh minWidth];