bug-gnustep
[Top][All Lists]
Advanced

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

[bug #4750] GWorkspace content (image) inspector fails depending on the


From: nobody
Subject: [bug #4750] GWorkspace content (image) inspector fails depending on the filename
Date: Sat, 16 Aug 2003 19:00:53 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1

=================== BUG #4750: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4750&group_id=99

Changes by: Enrico Sersale <enrico@dtedu.net>
Date: Sun 08/17/2003 at 02:00 (Europe/Bucharest)

            What     | Removed                   | Added
---------------------------------------------------------------------------
            Category | Application               | Gui/AppKit
            Severity | 5 - Major                 | 1 - Ordinary


------------------ Additional Follow-up Comments ----------------------------
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];




=================== BUG #4750: FULL BUG SNAPSHOT ===================


Submitted by: None                    Project: GNUstep                      
Submitted on: Sat 08/16/2003 at 14:11
Category:  Gui/AppKit                 Severity:  1 - Ordinary               
Bug Group:  Bug                       Resolution:  None                     
Assigned to:  None                    Status:  Open                         

Summary:  GWorkspace content (image) inspector fails depending on the filename

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.

Follow-up Comments
*******************

-------------------------------------------------------
Date: Sun 08/17/2003 at 02:00       By: esersale
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];



CC list is empty


No files currently attached


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4750&group_id=99

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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