bugGNUstep - Bugs: bug #4750, GWorkspace content (image)...

 
 

bug #4750: GWorkspace content (image) inspector fails depending on the filename

Submitted by:  None
Submitted on:  Sat 16 Aug 2003 11:11:18 AM UTC  
 
Category:  Gui/AppKit Severity:  1 - Wish
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  Adam Fedor <fedor>
Open/Closed:  Closed

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 20 Aug 2003 04:04:35 AM UTC, comment #2: 

Added indicated fix.

Adam Fedor <fedor>
Project AdministratorIn charge of this item.
Sat 16 Aug 2003 11:00:48 PM UTC, comment #1: 

The problem is not in the GWorkspace content (image) inspector, but in NSImageRep.m.
This simple patch can fix it.

@@ -169,7 +169,9 @@
       NSLog(@"Extension missing from image filename - '%@'", filename);
       return nil;
     }
-

+  ext = [ext lowercaseString];

   if (self == NSImageRep_class)
     {
       rep = [self imageRepClassForFileType: ext];

Enrico Sersale <esersale>
Project Member
Sat 16 Aug 2003 11:11:18 AM UTC, original submission:  

The GWorkspace content (image) inspector works on an arbitrary JPEG image with a lower case extension (.jpg).

Rename the file to have an upper case extension (.JPG), and the content inspector still correctly reports the image dimensions in pixels, but displays the following greyed out text "Invalid Contents" instead of the image.

The system is running a CVS version of GNUstep and GWorkspace from 20030813 on NetBSD/i386 1.6.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

 

 

Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2003-08-20 fedor StatusNone => (Error - Not Found)
    Assigned toNone => NA
    Open/ClosedOpen => (Error - Not Found)
2003-08-16 esersale Severity3 - Normal => (Error - Not Found)
2003-08-16 esersale CategoryApplication => (Error - Not Found)

Back to the top


Powered by Savane 3.5