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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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/AppKitSeverity: 1 - Wish
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: Adam Fedor <fedor>
Open/Closed: Closed

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

 

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 click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 20 Aug 2003 04:04:35 AM UTCfedorStatusNone=>(Error - Not Found)
  Assigned toNone=>NA
  Open/ClosedOpen=>(Error - Not Found)
Sat 16 Aug 2003 11:00:47 PM UTCesersaleSeverity3 - Normal=>(Error - Not Found)
Sat 16 Aug 2003 11:00:46 PM UTCesersaleCategoryApplication=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1