bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSBrowser small fix


From: Ludovic Marcotte
Subject: NSBrowser small fix
Date: Tue, 23 Oct 2001 22:43:33 -0400 (EDT)

Hi,

In NSBrowser: -_getTitleOfColumn we have:

...
      if ([c isLeaf])
        {
          return @"";
        }
      else
        { 
          return [c stringValue];
        }

and it should be:

      if ([c isLeaf] || [c stringValue] == nil)
        {
          return @"";
        }
      else
        { 
          return [c stringValue];
        }

otherwise, we will have an assertion failed (since we'll call
NSCell: -setStringValue: nil) when NSBrowser objects have more than one
empty column.

It fixes the crash we have in NSOpenPanel and NSSavePanel when you
maximise them and they both have empty columns.

Ludo

-- 
Live as if you were to die tomorrow.
Learn as if you were to live forever.
 - Gandhi





reply via email to

[Prev in Thread] Current Thread [Next in Thread]