Ignore:
Timestamp:
Sep 18, 2013, 1:08:11 AM (12 years ago)
Author:
Alex Taylor
Message:

Try to handle mismatched case in model name between DRV and PPD.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/shared/PrManUtl.VRS

    r44 r45  
    292292/* Determine if the specified PrinterPak driver already contains support
    293293 * for the specified printer model.
     294 *
     295 * If so, return the name of the model as found in the driver (necessary in
     296 * order to make sure the correct case is retained, which may be different
     297 * from what was requested).  Otherwise return ''.
    294298 */
    295299PrinterExistsInDRV: PROCEDURE EXPOSE globals.
     
    312316     */
    313317    start = 1
    314     found = 0
     318    found = ''
    315319    DO WHILE ( found == 0 ) & ( start < total_len )
    316320        _strend = POS('0'x, exist_models, start )
    317321        IF _strend == 0 THEN LEAVE
    318         _model = TRANSLATE( SUBSTR( exist_models, start, _strend - start ))
    319         IF _model == printer_name THEN
    320             found = 1
     322        _model = SUBSTR( exist_models, start, _strend - start )
     323        IF TRANSLATE( _model ) == printer_name THEN
     324            found = _model
    321325        ELSE
    322326            start = _strend + 1
Note: See TracChangeset for help on using the changeset viewer.