From edc7075a61ff063975b58d46549b82ac1e731336 Mon Sep 17 00:00:00 2001 From: nico Date: Sun, 28 Jan 2001 03:12:23 +0000 Subject: [PATCH] Removed hack no longer needed git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8845 72102866-910b-0410-8b05-ffd578937521 --- Source/NSBrowser.m | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/Source/NSBrowser.m b/Source/NSBrowser.m index e63a59470..c31dbce88 100644 --- a/Source/NSBrowser.m +++ b/Source/NSBrowser.m @@ -2797,17 +2797,20 @@ static float scrollerWidth; // == [NSScroller scrollerWidth] NSScrollView *sc; id matrix; NSSize cs, ms; - NSRect mr; if (column >= (int)[_browserColumns count]) - return; + { + return; + } #if defined NSBTRACE__adjustMatrixOfColumn || defined NSBTRACE_all fprintf(stderr, "NSBrowser - (void)_adjustMatrixOfColumn: %d\n", column); #endif if (!(bc = [_browserColumns objectAtIndex: column])) - return; + { + return; + } sc = [bc columnScrollView]; matrix = [bc columnMatrix]; @@ -2818,16 +2821,7 @@ static float scrollerWidth; // == [NSScroller scrollerWidth] ms = [matrix cellSize]; ms.width = cs.width; [matrix setCellSize: ms]; - mr = [matrix frame]; - - // this will automatically move the matrix on top if it's not - // yet the sc's document view, otherwise it will not move it [sc setDocumentView: matrix]; - - // the clipview's coordinate system is flipped - we need the - // matrix to appear on top - adjust for it - mr.origin.y = cs.height; - [matrix setFrame: mr]; } }